"HTML: missing ';'

10 posts, 0 answers
  1. jc mag
    jc mag avatar
    106 posts
    Member since:
    Aug 2005

    Posted 17 Mar 2011 Link to this post

    I'm trying justCode and I have the "HTML: missing ';'" warning for the ampersand on this line:

    <a href='History.aspx?page=<%# Eval("PageName") %>&revision=<%# Eval("Number") %>'>

    but there is no need to display a warning in this case.
  2. Hans Kratz
    Admin
    Hans Kratz avatar
    102 posts

    Posted 17 Mar 2011 Link to this post

    Hello,

    Thanks for the feedback!

    Actually the warning is valid. In order to have proper HTML produced you need to write &amp; instead of just the &.

    See e.g. this article for details:
    http://htmlhelp.com/tools/validator/problems.html#amp

    Best wishes,
    Hans Kratz
    the Telerik team
  3. DevCraft banner
  4. WaldenL
    WaldenL avatar
    3 posts
    Member since:
    Apr 2007

    Posted 10 Jul 2012 Link to this post

    Old post, I know, but... Yes, _technically_ you are correct, the HREF, SRC, or similar attribute is an HTML attribute, and as such should be HTML encoded. However, that's not commonly done, and while I'd love to "Fix" it, there are many other fish to fry. The problem is, I don't see a way to turn off that type of warning for HTML and ASP.Net code. I've LOVE to see a setting called "Ignore in HREF, SRC and similar attributes, unless text is a recognized entity value", but I'll take an general ignore for now. Any suggestions?
  5. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 13 Jul 2012 Link to this post

    Hello,

     Thanks for contacting us.
    Maybe it would be better if there is an option that allows to disable this kind of warning.
    We are thinking to implement it in some of the future versions of JustCode.
    Thanks and have a nice day.

    Kind regards,
    Zdravko
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Caleb
    Caleb avatar
    7 posts
    Member since:
    Jan 2012

    Posted 07 Aug 2012 Link to this post

    I'm getting this error too and it's invalid:

    <a href='FormInputEdit.aspx?cid=0&pid=<%# EditId %>'>Add New Field</a>
    


    it fails in many places on my site because of this too.. there's no option to disable this invalid error either
  7. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 09 Aug 2012 Link to this post

    Hello,

     @Caleb 
    Yes, it is the same. You have to escape the & with &amp; in order fix the warning. The other way to fix it is to ignore the warning.
    Thanks.

    Greetings,
    Zdravko
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  8. JeffSM
    JeffSM avatar
    11 posts
    Member since:
    May 2014

    Posted 20 Aug 2014 in reply to Zdravko Link to this post

    How do ignore? Is there a way to do for all alerts?
  9. Nikolay Valchev
    Admin
    Nikolay Valchev avatar
    72 posts

    Posted 25 Aug 2014 Link to this post

    Hello Jefferson,

    Here you can see how to ignore a warning or an error. Could you tell us what exactly you want to achieve: ignore all warnings/errors of any kind or in a particular kind?

    Regards,
    Nikolay Valchev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  10. JeffSM
    JeffSM avatar
    11 posts
    Member since:
    May 2014

    Posted 25 Aug 2014 in reply to Nikolay Valchev Link to this post

    The particular kind, subject of this post: HTML: missing ';', for all solutions.
  11. Nikolay Valchev
    Admin
    Nikolay Valchev avatar
    72 posts

    Posted 28 Aug 2014 Link to this post

    Hello Jefferson,

    You can watch this video and see how to ignore them all. Note that this will ignore all warnings of this kind which are already existing, those that are introduced after this action is performed will not be ignored and you should repeat the same procedure again. Another thing which you can do is to change the problem type to 'disabled' but since this warning is assigned to 'Language Warnings' group all other warnings that belong to this group will be ignored, too.

    If you have any further questions or remarks, please do not hesitate to contact us!

    Regards,
    Nikolay Valchev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
DevCraft banner