Closed
Bug 685774
Opened 13 years ago
Closed 13 years ago
Implement document.scripts
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla9
People
(Reporter: emk, Assigned: emk)
References
()
Details
(Keywords: addon-compat, dev-doc-complete, html5, Whiteboard: [mentor=bz])
Attachments
(1 file, 1 obsolete file)
5.59 KB,
patch
|
emk
:
review+
|
Details | Diff | Splinter Review |
Firefox is the only browser which lacks a support for document.scripts.
Comment 1•13 years ago
|
||
This is pretty simple to implement. Do you want to take a shot at it?
Whiteboard: [mentor=bz]
Updated•13 years ago
|
Version: unspecified → Trunk
Assignee | ||
Comment 2•13 years ago
|
||
> This is pretty simple to implement. Do you want to take a shot at it?
Yes, I'll take this bug.
Comment 3•13 years ago
|
||
Comment on attachment 559490 [details] [diff] [review] patch >+++ b/dom/tests/mochitest/whatwg/test_bug685774_document_scripts.html >+ is(a.length, c, "unexpected count of scripe elements"); s/scripe/script/ r=me with that typo fixed. Thank you!
Attachment #559490 -
Flags: review?(bzbarsky) → review+
Comment 4•13 years ago
|
||
Comment on attachment 559490 [details] [diff] [review] patch Review of attachment 559490 [details] [diff] [review]: ----------------------------------------------------------------- Could you name the test test_document_scripts.html instead (no need for the bug number)? You could also do a test after calling: document.createElement("script"); and another after adding this element to the DOM. ::: dom/tests/mochitest/whatwg/test_bug685774_document_scripts.html @@ +36,5 @@ > + > + SimpleTest.finish(); > +} > + > +window.addEventListener('load', start, false); Better to use addLoadEvent(start);
Assignee | ||
Comment 5•13 years ago
|
||
Fixed review comments.
Attachment #559490 -
Attachment is obsolete: true
Attachment #559499 -
Flags: review+
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Updated•13 years ago
|
Comment 6•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/a739df5e7bc0
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 7•13 years ago
|
||
Would this bug need the dev-doc-needed keyword marker?
Updated•13 years ago
|
Whiteboard: [mentor=bz][inbound] → [mentor=bz]
Target Milestone: --- → mozilla9
Updated•13 years ago
|
Updated•13 years ago
|
Keywords: addon-compat
Comment 9•13 years ago
|
||
Documented: https://developer.mozilla.org/en/DOM/Document.scripts Updated: https://developer.mozilla.org/en/DOM/Document https://developer.mozilla.org/en/DOM/HTMLCollection And mentioned on Firefox 9 for developers.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•