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)

defect
Not set
major

Tracking

()

VERIFIED INVALID

People

(Reporter: netdragon, Assigned: jst)

Details

Attachments

(1 file)

2003020508: When you create an element through the DOM using document.createElement, it has no style for setProperty, etc.
Attached file XML testcase
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
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.

Attachment

General

Created:
Updated:
Size: