-
Notifications
You must be signed in to change notification settings - Fork 57
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
<label> around an input field eats following elements #34
Comments
Can you make a requirebin? This seems to work for me. lol super pixely img: |
Oops! I was a bit too keen at trimming down the test case. Requirebin only works in incognito windows for some reason for me, where I'm not logged in to github. (That or it takes 20+ seconds to start up, in which case I'm just not patient enough.) Anyway: var bel = require('bel');
var html = bel`<div>
<label>
<input type="checkbox" id="keep" checked>text
</label>
<a>Outside</a>
</div>`;
console.log('hello', html); Cases:
|
Probably related to #28 |
Ah, oops, somehow the checked attr got removed when I was playing around in Requirebin, and I didn't notice. Thanks for taking the time to make that Requirebin, even though it sounded pretty tedious to set up :P The two issues do seem likely to be related – thanks @yoshuawuyts ! |
I'll look into this again soon. That and |
This appears to be fixed in the latest hyperx; probably by choojs/hyperx@d85b56b. thanks! |
I'm not sure what the problem is, but if I have an input field inside a label as recommended by mdn:
... The following elements somehow teleport inside the label.
The text was updated successfully, but these errors were encountered: