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

Links inside <object data=""> aren't resolved #1061

Closed
Dosant opened this issue Mar 24, 2018 · 0 comments · Fixed by #1069
Closed

Links inside <object data=""> aren't resolved #1061

Dosant opened this issue Mar 24, 2018 · 0 comments · Fixed by #1069
Labels

Comments

@Dosant
Copy link

Dosant commented Mar 24, 2018

🐛 bug report

🎛 Configuration (.babelrc, package.json, cli command)

parcel index.html

🤔 Expected Behavior

Links to resources inside <object data=""> tag should be resolved just like <img src="">

😯 Current Behavior

Links inside <object data=""> are just being skipped and are resulted in dist html as is.

🔦 Context

I am trying to insert external svg using object tag. The syntax is as follows: <object data="./assets/src.svg" type="image/svg+xml"></object>.

I am using this approach instead of regular <img src>, to make text inside of SVG selectable and visible for crawlers. On the other hand, I don't want to insert inline svg.

💻 Code Sample

<object data="./assets/src.svg" type="image/svg+xml"></object>

No errors. Just in result index.html the ./assets/src.svg isn't replaced and src.svg isn't copied to dist.

🌍 Your Environment

Software Version(s)
Parcel 1.6.2
Node 8.9.1
npm/Yarn 1.2.1
Operating System macOS 10.13.2
@Dosant Dosant changed the title <object> tag data attribute links aren't resolved Links inside <object data=""> aren't resolved Mar 24, 2018
Dosant added a commit to Dosant/parcel that referenced this issue Mar 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants