Closed
Bug 192850
Opened 23 years ago
Closed 23 years ago
CSSStyleDeclaration not added to created XHTML elements
Categories
(Core :: DOM: CSS Object Model, defect)
Core
DOM: CSS Object Model
Tracking
()
VERIFIED
INVALID
People
(Reporter: netdragon, Assigned: jst)
Details
Attachments
(1 file)
|
738 bytes,
text/xml
|
Details |
2003020508:
When you create an element through the DOM using document.createElement, it has
no style for setProperty, etc.
| Reporter | ||
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
You're not creating an XHTML element. You're creating an element in the null
namespace.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 3•23 years ago
|
||
Yep, that was it. I'd hug you if you were right here! I spent hours trying to
figure out what was wrong, before :-(
var newSpanNode = document.createElementNS("http://www.w3.org/1999/xhtml","span");
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•