Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use DOM hidden property instead of attribute methods #12971

Merged
merged 1 commit into from
Feb 8, 2021
Merged

Use DOM hidden property instead of attribute methods #12971

merged 1 commit into from
Feb 8, 2021

Conversation

nt1m
Copy link
Contributor

@nt1m nt1m commented Feb 7, 2021

.setAttribute("hidden", "true") or .setAttribute("hidden", true) are misleading, because .setAttribute("hidden", "false") also hides the element. This is because the HTML UA sheet matches [hidden].

.setAttribute("hidden", "hidden"); or .hidden = true would be correct ways to do it. The latter is more future-proof though.

The reason I'm doing this is because this showed up in the XUL boolean attribute matches in mozilla-central (XUL considers hidden=true as correct unlike HTML, and I'm looking into fixing that).

@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Feb 8, 2021

From: Bot.io (Linux m4)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/efbcd9629553dfd/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Feb 8, 2021

From: Bot.io (Windows)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://3.101.106.178:8877/c43f29b86600d32/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Feb 8, 2021

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/efbcd9629553dfd/output.txt

Total script time: 23.10 mins

  • Font tests: Passed
  • Unit tests: FAILED
  • Integration Tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.67.70.0:8877/efbcd9629553dfd/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Feb 8, 2021

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/c43f29b86600d32/output.txt

Total script time: 29.10 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED

Image differences available at: http://3.101.106.178:8877/c43f29b86600d32/reftest-analyzer.html#web=eq.log

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Feb 8, 2021

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/1d0891e6d91f741/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Feb 8, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/1d0891e6d91f741/output.txt

Total script time: 4.21 mins

Published

@timvandermeij timvandermeij merged commit 884c65c into mozilla:master Feb 8, 2021
@timvandermeij
Copy link
Contributor

Thank you for improving this!

@nt1m nt1m deleted the bool-attrs branch February 8, 2021 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants