dom context with html5 tag #72

Open
somajs opened this Issue Feb 22, 2012 · 2 comments

2 participants

@somajs

Hi,

It seems I have an issue on IE7 using a dom node context with a html5 tag, if that makes sense...

Note that if I change the tags from "section" to "div", it works.
Articles tags don't work either.

Is that a bug or I'm missing something?

See the code below.

Romu

<!doctype html>
<html>
<head>
    <title>title</title>
</head>
<body>

<section id="main">
    <section class="test">

    </section>
    <section class="test">

    </section>
</section>

<script type="text/javascript" src="qwery.js"></script>

<script type="text/javascript">
    var main = qwery("#main")[0];
    alert(main)
    alert(main.id)
    var tests = qwery(".test", main);
    alert(tests)
    alert(tests.length)
</script>

</body>
</html>
@ded
Owner

Qwery has a general problem with HTML5 tags... perhaps the HTML5 shiv would easily fix this for you?

@somajs

I already tried that but it doesn't solve anything. Could I get more details about what the problem is (if you know already)?

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