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)

x86
Windows 2000
defect
Not set
normal

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.
Attached file HTML testcase
Attached file XHTML testcase
Attached file XML testcase
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?
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.

Attachment

General

Created:
Updated:
Size: