On 2/14/14 9:16 PM, Josh Matthews wrote:
For the short term I'm interested in making layout code always go for
the attributes, because relying on sprinkling
wait_until_safe_to_modify_dom all over content code is easy to get
wrong. Thoughts?

There's some DOM state layout needs that's not actually available in the form of attributes. Things like valid/invalid form control state and whatever other non-attribute state CSS selectors can match to is the obvious one...

Note that even for attributes you may want to expose some sort of parsed representation to layout, not just the string. Should be OK with the COW DOM, though.

-Boris
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to