mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #9317 - MonsieurLanza:DomContentLoadedBubbles, r=KiChjang
DOMContentLoaded should bubble. DOMContentLoaded event is currently set as non bubbling event. Test : ./tests/wpt/web-platform-tests/html/syntax/parsing/the-end.html <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9317) <!-- Reviewable:end -->
This commit is contained in:
commit
0c500a9da5
1 changed files with 1 additions and 1 deletions
|
@ -1352,7 +1352,7 @@ impl Document {
|
|||
|
||||
let event = Event::new(GlobalRef::Window(self.window()),
|
||||
atom!("DOMContentLoaded"),
|
||||
EventBubbles::DoesNotBubble,
|
||||
EventBubbles::Bubbles,
|
||||
EventCancelable::NotCancelable);
|
||||
let doctarget = self.upcast::<EventTarget>();
|
||||
let _ = doctarget.DispatchEvent(event.r());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue