NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Robert Iliuta on April 15, 2019, 03:37:21 AM
-
Hallo Bruce!
I have a link where I download a PDF file.
In a browse works when I open the Browse but not when I press next page. (I need to reload the page)
In a popup form it doesn't work at all. The popup form will not open.
This is the example link: <a href="#" download>test download link</a>
Console said: XML Parsing Error: not well-formed
xHTML safe/unsafe was checked. I put also the code on XHTML tab.
What could be the reason?
Thank you!
Robert
-
Hi Robert,
>> Console said: XML Parsing Error: not well-formed
yep - so the HTML is not well formed XML.
>> I put also the code on XHTML tab.
what code did you put on there?
cheers
Bruce
-
a "normal" link :-)
<a href="#" download>test download link</a>
Robert
-
<a href="#" download>test download link</a>
This is not valid because the word "download" inside the <a is not right. Did you perhaps mean to have;
<a href="#download">test download link</a>
?
Cheers
Bruce
-
Hallo Bruce!
Check this: https://www.w3schools.com/tags/att_a_download.asp (https://www.w3schools.com/tags/att_a_download.asp)
"download" is an attribute to <a> tag.
Robert
-
Hi Robert,
in xml each attribute must have a value. So this is not valid xHTML. To make it valid change it to
<a href="#" download="download">test download link</a>
cheers
Bruce
-
Hallo Bruce!
>>in xml each attribute must have a value. So this is not valid xHTML. To make it valid change it to
didn't know that... next time I will check also for xHTML.
<a href="#" download="download">test download link</a>
Works just perfect!
Thank you!
Robert