Last modified: 2013-08-20 16:59:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T49323, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47323 - Update html5 package from upstream.
Update html5 package from upstream.
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
DOM (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Arlo Breault
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-17 17:10 UTC by C. Scott Ananian
Modified: 2013-08-20 16:59 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description C. Scott Ananian 2013-04-17 17:10:27 UTC
We should resync our forked html5 parser package with upstream (https://github.com/aredridel/html5).  We've made changes of two types:
1) changes to allow us to pass in our tokens directly
2) changes to support using domino instead of jsdom.
2b) changes to support using DOM4 instead of DOM3 (because domino only supports DOM4 methods)

It looks like upstream has landed changes to support DOM4 now, so the changes needed upstream to support domino might be very trivial.  https://github.com/aredridel/html5/blob/master/lib/html5/parser.js#L2374 has to be changed to allow using domino instead of jsdom, based on options (see https://gerrit.wikimedia.org/r/#/c/49953/3/js/lib/html5/parser.js).  domino also doesn't support direct array access to attributes, so a few .item() accessor methods might need to be added, similar to https://gerrit.wikimedia.org/r/49838.
Comment 1 C. Scott Ananian 2013-04-17 17:12:08 UTC
Gwicke mentions that we have some foster parenting bugs, so hopefully resyncing with upstream will fix those.  Upstream also has some issues with node 0.10 (https://github.com/aredridel/html5/issues/73); hopefully we'll inherit fixes for those (depending on when we resync).
Comment 2 C. Scott Ananian 2013-04-17 17:13:26 UTC
See also https://gerrit.wikimedia.org/r/59509 which is a console.log we'd like to turn off upstream.
Comment 3 Gabriel Wicke 2013-04-17 17:14:57 UTC
https://github.com/aredridel/html5/blob/master/lib/html5/parser.js#L2374 is just the default document which does not necessarily need to be changed. Passing in a domino document should work fine and will avoid using jsdom.
Comment 4 Gerrit Notification Bot 2013-08-16 23:03:08 UTC
Change 79442 had a related patch set uploaded by Arlolra:
WIP: Update html5 package from upstream.

https://gerrit.wikimedia.org/r/79442
Comment 5 Gerrit Notification Bot 2013-08-20 16:59:03 UTC
Change 79442 merged by jenkins-bot:
Update html5 package from upstream.

https://gerrit.wikimedia.org/r/79442

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links