Closed
Bug 186625
Opened 23 years ago
Closed 23 years ago
Style properties missing in dynamically created XHTML elements
Categories
(Core :: DOM: CSS Object Model, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: alexeyc2003, Assigned: jst)
Details
(Keywords: testcase, xhtml, Whiteboard: INVALID?)
Attachments
(3 files)
Build: Win32 1.3a
In application/xhtml+xml and text/xml XHTML documents, elements created through
document.createElement() don't have any style properties.
The testcase is the same document attached in different MIME types.
| Reporter | ||
Comment 1•23 years ago
|
||
| Reporter | ||
Comment 2•23 years ago
|
||
| Reporter | ||
Comment 3•23 years ago
|
||
Comment 4•23 years ago
|
||
The problem, of course, is that createElement() in a non-HTML document does
_not_ create an HTML element. You should be using createElementNS() (which the
DOM spec strongly recommends in any XML environment in any case).
And generic XML (non-HTML) elements do not have a useful "style" property.
Whiteboard: INVALID?
| Assignee | ||
Comment 5•23 years ago
|
||
Yup, INVALID.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•