How to Eliminate Syntax Errors Warnings for Particular Items

36 views
Skip to first unread message

Rick Gordon

unread,
May 6, 2026, 9:00:30 PMMay 6
to bbedit

How can I eliminate syntax checking errors/warnings such as these:

Document type does not permit element “<source>” in content of element “<picture>”.
Document type doesn't permit attribute “allowautoplay” within element “<iframe>”.
Document type doesn't permit attribute “decoding” within element “<img>”.
Document type doesn't permit attribute “frameborder” within element “<iframe>”.
Document type doesn't permit attribute “gesture” within element “<iframe>”.
Document type doesn't permit attribute “link_target_backup” within element “<a>”.
Document type doesn't permit attribute “moz-do-not-send” within element “<img>”.
Document type doesn't permit attribute “sizes” within element “<img>”.
Document type doesn't permit attribute “srcset” within element “<source>”.

Rick Gordon

Neil Faiman

unread,
May 7, 2026, 2:18:15 PMMay 7
to BBEdit Talk Mailing List
I don’t believe that there is a way to tell the checker to ignore specific kinds of errors.

However, you can use <!-- #bbpragma ignore_errors="on" —> and <!-- #bbpragma ignore_errors="off" —> to turn off checking in a region of your code.

For example, I have geo meta tags in the headers of my web pages, and the bbedit syntax checker doesn’t like them, so the bbinclude file that generates my head elements contains this:

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="Stylesheet" href="#RELATIVE#zba-5.12.css" type="text/css">

<script src="#RELATIVE#collapsible_menu.js"></script>

<!-- #bbpragma ignore_errors="on" -->

    <meta name="geo.position" content="42.84;-71.75">

<meta name="geo.country" content="us">

<meta name="geo.a1" content="NH">

<meta name="geo.a2" content="Hillsborough">

<meta name="geo.a3" content="Wilton">

<!-- #bbpragma ignore_errors="off" -->

    <link rel="apple-touch-icon" sizes="180x180" href="#RELATIVE#apple-touch-icon.png">

    <link rel="icon" type="image/png" sizes="32x32" href="#RELATIVE#favicon-32x32.png">

    <link rel="icon" type="image/png" sizes="16x16" href="#RELATIVE#favicon-16x16.png">

    <link rel="manifest" href="#RELATIVE#site.webmanifest">




-- 
This is the BBEdit Talk public discussion group. If you have a feature request or believe that the application isn't working correctly, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: <https://mastodon.social/@bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bbedit/c5b67022-d532-44c5-977e-e01b4b0f6248%40rickgordon.com.

Reply all
Reply to author
Forward
0 new messages