Closed Bug 8797 Opened 25 years ago Closed 25 years ago

style property is missing from XML elements and XUL elements in JS objects, but present in HTML

Categories

(Core :: XUL, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 7639

People

(Reporter: eXv, Assigned: eric)

References

()

Details

Using XML and XUL elements together with html namespaced elements, I have been
unable to modify the CSS properties of either XUL or custom XML tags via
javascript because the style property is missing. Both of these marvelously obey
the css styles defined in their stylesheets, and I can even create new nodes
that obey the styles.

These are the properties that html elements show:

accessKey,attributes,childNodes,className,dir,disabled,firstChild,form,id,lang,lastChild,name,nextSibling,nodeName,nodeType,nodeValue,ownerDocument,parentNode,previousSibling,style,tabIndex,tagName,title,type,value

The xul or xml elements return this:

attributes,childNodes,firstChild,lastChild,nextSibling,nodeName,nodeType,nodeValue,ownerDocument,parentNode,previousSibling,resource,tagName

I figured that any element that used CSS should have the style property
exposed to the javascript objects.

I am using M6 built from source on Linux 2.0.36

I put a few files at http://131.96.115.58/~exv/xul/ which demonstrate
some what does work (adding elements that obey the css), and shows
these properties being printed out.

-Josh Gough
Assignee: peterl → trudelle
Component: Style System → XUL
XML elements should *NOT* have the style property. The style property is a
reflection of the "style" attribute which does not mean anything special in XML,
only in HTML.

Whether or not the style property should be exposed from XUL is another matter
(since it DOES have a "style" attribute), I'll let the XUL guys figure that one
out.
Assignee: trudelle → evaughan
Target Milestone: M9
assigning to evaughan as p3 for m9
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Dup of 7639.


*** This bug has been marked as a duplicate of 7639 ***
QA Contact: chrisd → ckritzer
Status: RESOLVED → VERIFIED
Verified DUPLICATE of 7639 in build 1999071309 Linux6
BULK MOVE: Changing component from XUL to XP Toolkit/Widgets: XUL.  XUL 
component will be deleted.
Component: XUL → XP Toolkit/Widgets: XUL
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: ckritzer → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.