Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 512189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:17:40+00:00 2026-05-13T07:17:40+00:00

This subject turned into a heated discussion at the office, so I’m interested to

  • 0

This subject turned into a heated discussion at the office, so I’m interested to learn what you think.

We are working on a web app that only targets some specific browsers. These browsers presently include different flavors Opera 9 and Mozilla 1.7.12. In the future we likely also have to support Opera 10 and different flavors of WebKit. But it’s very unlikely we are ever going to have to deal with any version of IE.

Our web app declares HTML 4.0 strict in it’s doctype.

Recently, I proposed as a solution to a specific problem to use custom attributes in the HTML. I proposed something that would look like this:

<span translationkey="someKey">...</span>

Since this is not valid HTML 4, it did not go down well with our HTML guys, and we got into an argument.

My question is this: What – if any – are the risks of using custom attributes? I know the page won’t validate, but don’t all browsers just ignore attributes they do not know? Or is it conceivable that some browsers will change to “quirks mode” and render the page as if it was something other than strict HTML 4.0?

Update:

Hilited the actual question posed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T07:17:40+00:00Added an answer on May 13, 2026 at 7:17 am

    There are no browser limitations/risks. Only the w3 validator will bark, but barking dogs doesn’t bite.

    The w3 spec says the following:

    • If a user agent encounters an attribute it does not recognize, it
      should ignore the entire attribute
      specification (i.e., the attribute and
      its value).

    IE will also not render in quirks mode or so as some may think. It will only do that on invalid/forced doctypes, not on invalid attributes.

    However, keep in mind that some Javascript libraries/frameworks will “invisibly” add/use custom HTML attributes in the DOM tree, such as several jQuery plugins do. This way you may risk collisions in attributes because it “by a coincidence” uses an attribute with the same name as you do for your own purposes. Sadly this is often poorly or even not documented at all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My previous question about this subject was answered and I got some tests working
I know there is a question about this subject already but I think it's
Lots available on this subject but I havn't found anything that answers my question...
I know this subject has been run into the ground, however I have tried
I am almost sure that this is much simpler than I think it is,
I am a newbie in this subject and want to learn how to embed
OK I know that this subject has been mentioned many times before on SO,
I am beginner to this subject and self studying. I think this is basic
I know that this subject has been seen many times here, but I didn't
Update: This turned into a blog post, with updated links and code, over at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.