Page 1 of 1

Error Parsing" unusual brackets.

Posted: Mon Sep 08, 2014 12:19 pm
by nadya.fd
Hello,
I always had "Error parsing" message in "--" brackets, example:

Code: Select all

<!-- <button 
...
onclick="cancelOrder({productId:'-- Error parsing: Core.data.productId --', imgPath:'-- Error parsing: Core.data.imgPath --', action:'cancelOrder'});">
Cancel </button> -->
Now I have it in different brackets "<--" on some pages, which cause problems parsing HTML, example:

Code: Select all

<!-- <button 
...
onclick="cancelOrder({productId:'<!-- Error parsing: Core.data.productId-->', imgPath:'<!-- Error parsing: Core.data.imgPath-->', action:'cancelOrder'});">Cancel-->

 -->
Any ideas why???

Thank you!

Re: Error Parsing" unusual brackets.

Posted: Mon Sep 08, 2014 12:28 pm
by Weirdan
Because you can't have less-than (<) or greater-than (>) sign in attribute values. You need to use their html entity equivalents instead, < and > respectively.

Re: Error Parsing" unusual brackets.

Posted: Mon Sep 08, 2014 12:53 pm
by nadya.fd
Where do I have (<) or (>) as attribute value ?

There is no value by now, because Core.data array is empty.

Re: Error Parsing" unusual brackets.

Posted: Mon Sep 08, 2014 7:30 pm
by donny

Code: Select all

<button onclick="cancelOrder({productId:'<!-- Error parsing: Core.data.productId --!>', imgPath:'<!-- Error parsing: Core.data.imgPath --!>', action:'cancelOrder'});">
Cancel</button>
the brackets you had in your error message comments out your code when parsed. you need to replace the brackets with their correct entities

--abreadupandmytopdown--

Re: Error Parsing" unusual brackets.

Posted: Tue Sep 09, 2014 8:58 am
by nadya.fd
Absolutely, donny!!!

The question is "Where do they come from?"

It is a part of the "Error parsing" message. Why?
message suppose to be like " --Error parsing--" and now it is like"<!--Error parsing-->"