|
Ran
|
Files
116
|
Run time
11s
|
Badge
README BADGES
|
push
travis-ci
Add DOMCompat classes to support the DOM methods missing from PHP DOM Adds some missing methods from DOM level 3 and from HTMLElement in the HTML spec. Only includes methods actually used by Parsoid, to keep complexity down. Ideally we'd just extend the PHP DOM classes, but DOM objects create other DOM objects and we have no way of turning those into our extended types, so we just provide static helpers with identical names instead. E. g. $fooElmt = $elmt->querySelector( '.foo' ); $innerHtml = $fooElmt->innerHtml; becomes $fooElmt = DOMCompat::querySelector( $elmt, '.foo' ); $innerHtml = DOMCompat::getInnerHtml( $fooElmt ); Bug: T215000 Change-Id: I7deccaca1
9548 of 12008 branches covered (79.51%)
14858 of 17582 relevant lines covered (84.51%)
28685.39 hits per line
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|