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

Link doesn't render - Bug #15

Closed
cjh9 opened this issue Jun 12, 2018 · 1 comment
Closed

Link doesn't render - Bug #15

cjh9 opened this issue Jun 12, 2018 · 1 comment
Labels

Comments

@cjh9
Copy link

cjh9 commented Jun 12, 2018

Look at this example:

<!doctype html>
<html lang="en">
<head>
  <title>petit-dom Link Bug</title>
</head>
<body>

  <script src="../../dist/petit-dom.dev.js"></script>
  <script>
    const {h, mount} = petitDom

    const vnode = h('div', null, [h('a', {href:'www.example.com'}, ['link'])]);

    document.body.appendChild(mount(vnode));
  </script>
</body>

</html>

The link won't render on the latest Chrome 66. When I edit the element in the inspector it says <a xlink:href="www.example.com">link</a> The xlink is creating the error, it works when I remove the href: XLINK_NS in the vdom.js.

@yelouafi yelouafi added the bug label Sep 16, 2018
@yelouafi
Copy link
Owner

fixed in v0.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants