-
Notifications
You must be signed in to change notification settings - Fork 4
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
Attribute parsing should return true when attribute is set without value #3
Comments
Debugging this further, |
As low-level as hpq is meant to be, I don't know that var wrapper = document.createElement( 'div' );
wrapper.innerHTML = '<audio loop>';
var audio = wrapper.querySelector( 'audio' );
console.log( audio.getAttribute( 'loop' ) );
// ""
console.log( audio.attributes.loop.value );
// "" |
Huh. Anyways, I got stuck on trying to figure out why |
It was a small mistake with the test changes in #4, where the element was not including the added markup since the additional markup was defined outside the root |
Given an HTML element:
When I parse the
loop
attribute on the element, the value should be true:parse()
currently returns undefined.From WordPress/gutenberg#7322 (comment)
The text was updated successfully, but these errors were encountered: