https://bugzilla.wikimedia.org/show_bug.cgi?id=38630

--- Comment #3 from Daniel Friesen <[email protected]> 
2012-09-04 04:11:31 UTC ---
It's not exactly a placeholder. And it's tricky to do. But one of the things I
contemplated before was inserting an id, name, or class onto the stylesheet tag
that comes before the spot we want to add dynamic stylesheets to. After that
we'd probably do something like looking that node up on page load. And whenever
a dynamic style is inserted we would record it so we know what element we now
want to insert after. Or maybe recording the nextSibling onload and using
insertBefore on that.

Or instead of a hacky id. We could give all stylesheets named ids. And inside a
script tag register the id of the node we want to insert before or after. Then
lookup that id when we first need to insert something.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to