Invalid source tag. Attributes must be separated by spaces.

I have the following HTML as part of my SharePoint website (and this HTML was automatically generated from SharePoint itself), and this is not a custom web part: -

<td style="width:24px"><a id="WPQ2_nav_prev_a" href="javascript:MoveToDate('8\u002f13u002f2013','WPQ2');" ><img id="WPQ2_nav_prev_img" src="/_layouts/15/1033/images/calprev.png" width="19" height="19") /></a></td> 

but when I check my website using the IE F12 developer tools, the console showed the following error in the above code (especially after height = "19"): -

HTML1423: Invalid start tag. Attributes must be separated by a space.

What causes this / and how can I solve it?

+4
source share
1 answer

Your markup should be as below

 <td style="width:24px"> <a id="WPQ2_nav_prev_a" href="javascript:MoveToDate('8\u002f13u002f2013','WPQ2');" > <img id="WPQ2_nav_prev_img" src="/_layouts/15/1033/images/calprev.png" width="19" height="19" /> </a> </td> 

You have a closing bracket ) after height ="19" in the code, which may cause an error

+3
source

Source: https://habr.com/ru/post/1502068/


All Articles