Claws, fangs, fur...

...the bear essentials

Subscribe to RSS feed

Posts tagged with "attribute"

Testing how browsers react to changing element attribute values

, , , ...

Result: poorly.

http://www.omegajunior.net/code/tests/test_img_checkbox.html

Selecting a checkbox does select the checkbox... but it doesn't cause ANY tested browser to update the checkbox styling. To change the styling, authors must resort to scripting, like changing the class attribute using javascript.

This behaviour follows the HTML4 and CSS2 recommendations... which I consider quite disappointing. I'd love to see browsers react to attribute value changes by applying the CSS specified for the varying values. That way, less javascript is needed.

I can understand why browsers don't, and why their behaviour is recommended in HTML4 and CSS2: reacting to changes in several attributes for the same element may cause confusion and headaches for the author, let alone the browser programmers.

As if that ever stopped either of those groups from implementing something...

XSLT in practice

, , , ...

Yay, xslt, the holy grail of halfway between static and dynamic content distribution. Or so it seems.

I've been trying to wrap my head around xslt for a couple months now. There's plenty of primers out there, no need for me to reprise that. But there is some stuff I found missing. Some stuff I found out the hard way. Today I share it with you, so you don't have to spend hours looking for it.

Read more...