Closed
Bug 685774
Opened 14 years ago
Closed 14 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•14 years ago
|
||
This is pretty simple to implement. Do you want to take a shot at it?
Whiteboard: [mentor=bz]
Updated•14 years ago
|
Version: unspecified → Trunk
Assignee | ||
Comment 2•14 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•14 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•14 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•14 years ago
|
||
Fixed review comments.
Attachment #559490 -
Attachment is obsolete: true
Attachment #559499 -
Flags: review+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Updated•14 years ago
|
Comment 6•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 7•14 years ago
|
||
Would this bug need the dev-doc-needed keyword marker?
Updated•14 years ago
|
Whiteboard: [mentor=bz][inbound] → [mentor=bz]
Target Milestone: --- → mozilla9
Updated•14 years ago
|
Updated•14 years ago
|
Keywords: addon-compat
Comment 9•14 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
•