Skip to content

Fix bug 1322674 by only conditionally removing content from tables when the tables are layout tables#348

Merged
evanxd merged 2 commits intomozilla:masterfrom
gijsk:1322674-table-divs
Feb 9, 2017
Merged

Fix bug 1322674 by only conditionally removing content from tables when the tables are layout tables#348
evanxd merged 2 commits intomozilla:masterfrom
gijsk:1322674-table-divs

Conversation

@gijsk
Copy link
Contributor

@gijsk gijsk commented Jan 30, 2017

@evanxd I wrote up a fix for bug 1322674. I also added some extra debugging logic to the test runner script. Can you take a look?

@gijsk gijsk requested a review from evanxd January 30, 2017 14:21
@evanxd
Copy link
Contributor

evanxd commented Feb 9, 2017

Looks good to me.
The logging code to easily find the error nodes is a good idea!

@evanxd evanxd merged commit 1369f92 into mozilla:master Feb 9, 2017
var p = node.getElementsByTagName("p").length;
var img = node.getElementsByTagName("img").length;
var li = node.getElementsByTagName("li").length-100;
var li = node.getElementsByTagName("li").length - 100;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add new eslint rules to avoid the bad code style like this. Already filed a follow up issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants