mozbrick / brick

UI Web Components for Modern Web Apps
http://mozbrick.github.io/
Other
2.97k stars 207 forks source link

[1.0.1] Attribute target disappears from element <a> when page is loaded #273

Open nicodel opened 9 years ago

nicodel commented 9 years ago

I have a web application in which I added external links (Information part, where are listed contributors, licence...). Actually, when somebody, tap or click on these links, the external page is load in the same web app, breaking the user navigation. Brick version: 1.0.1 (from stable branch) Step to reproduce:

  1. Create a HTML Element with both attributes completed. Something like: <a href="http://wwwmozilla.org" target="_blank">Go to Mozilla</a>
  2. Load the web page in a browser.
  3. Click on "Go to Mozilla".

What happens: mozilla.org webpage is loaded in the same page .

What should happen: mozilla.org is loaded on another page

Workaroud: A workaround is to add the target="_blank" with javascript only when the concerned x-card is called.