servo: Merge #9317 - DOMContentLoaded should bubble (from MonsieurLanza:DomContentLoadedBubbles); r=KiChjang

DOMContentLoaded event is currently set as non bubbling event.
Test :
./tests/wpt/web-platform-tests/html/syntax/parsing/the-end.html

Source-Repo: https://github.com/servo/servo
Source-Revision: 0c500a9da53145bf065804794137e2b4fc295dee
This commit is contained in:
Lanza 2016-01-15 06:24:12 +05:01
Родитель bfbb31dc42
Коммит f516d45bea
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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());