Closed Bug 284199 (<?moz-ecmascript?>) Opened 20 years ago Closed 18 years ago

Support ECMAScript by XML processing instruction

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: WeirdAl, Assigned: WeirdAl)

References

()

Details

Scripting XML documents is somewhat limited by the necessity to use
<html:script/>, <xul:script/>, and friends.  This bug is for the discussion and
implementation of a XML processing instruction to retrieve an ECMA script for an
XML document.

At this time, my intent is to implement a processing instruction with a target
of "moz-ecmascript" and a pseudo-attribute of "src", designating the URI of the
script to load.  E4X, where supported by Mozilla, will be supported by the
processing instruction.

Example:
<?moz-ecmascript src="http://abacus.mozdev.org/projects/foo.js" ?>

The processing instruction should honor the xml:base attribute of elements per
http://www.w3.org/TR/xmlbase/#matching .
Alias: <?moz-ecmascript?>
Some ideas are good, but due to lack of interest I'm wontfixing this.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WONTFIX
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.