Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Basically a simple question I'm not really sure where to search after;

Is it safe to write checked as an attribute instead of checked="checked" without becoming incompatible with certain browsers? This also includes selected, disabled, readonly and so on.

It just feels like mindless repetition to type in the same thing twice because of habit, so if anyone knows if this can be skipped without any consequences or not, please share your knowledge.

Example:

Can I always use <input type="checkbox" checked /> instead of <input type="checkbox" checked="checked" />?

This answer is answered to a certain extent in another questionanother question. But apart from XHTML, I don't see any answers regarding browser compatibility and the like.

Basically a simple question I'm not really sure where to search after;

Is it safe to write checked as an attribute instead of checked="checked" without becoming incompatible with certain browsers? This also includes selected, disabled, readonly and so on.

It just feels like mindless repetition to type in the same thing twice because of habit, so if anyone knows if this can be skipped without any consequences or not, please share your knowledge.

Example:

Can I always use <input type="checkbox" checked /> instead of <input type="checkbox" checked="checked" />?

This answer is answered to a certain extent in another question. But apart from XHTML, I don't see any answers regarding browser compatibility and the like.

Basically a simple question I'm not really sure where to search after;

Is it safe to write checked as an attribute instead of checked="checked" without becoming incompatible with certain browsers? This also includes selected, disabled, readonly and so on.

It just feels like mindless repetition to type in the same thing twice because of habit, so if anyone knows if this can be skipped without any consequences or not, please share your knowledge.

Example:

Can I always use <input type="checkbox" checked /> instead of <input type="checkbox" checked="checked" />?

This answer is answered to a certain extent in another question. But apart from XHTML, I don't see any answers regarding browser compatibility and the like.

added 22 characters in body
Source Link
Robin Castlin
  • 11k
  • 1
  • 30
  • 44

Basically a simple question I'm not really sure where to search after;

Is it safe to write checked as an attribute instead of checked="checked" without becoming incompatible with certain browsers? This also includes selected, disabled, readonly and so on.

It just feels like mindless repetition to type in the same thing twice because of habit, so if anyone knows if this can be skipped without any consequences or not, please share your knowledge.

Example:

Can I always use <input type="checkbox" checked /> instead of <input type="checkbox" checked="checked" />?

This answer is answered to a certain extent in another question. But apart from XHTML, I don't see any answers regarding browser compatibility and the like.

Basically a simple question I'm not really sure where to search after;

Is it safe to write checked as an attribute instead of checked="checked" without becoming incompatible with certain browsers? This also includes selected, disabled, readonly and so on.

It just feels like mindless repetition to type in the same thing twice because of habit, so if anyone knows if this can be skipped without any consequences or not, please share your knowledge.

Example:

Can I always use <input type="checkbox" checked /> instead of <input type="checkbox" checked="checked" />?

Basically a simple question I'm not really sure where to search after;

Is it safe to write checked as an attribute instead of checked="checked" without becoming incompatible with certain browsers? This also includes selected, disabled, readonly and so on.

It just feels like mindless repetition to type in the same thing twice because of habit, so if anyone knows if this can be skipped without any consequences or not, please share your knowledge.

Example:

Can I always use <input type="checkbox" checked /> instead of <input type="checkbox" checked="checked" />?

This answer is answered to a certain extent in another question. But apart from XHTML, I don't see any answers regarding browser compatibility and the like.

added 22 characters in body
Source Link
Robin Castlin
  • 11k
  • 1
  • 30
  • 44

Basically a simple question I'm not really sure where to search after;

Is it safe to write checked as an attribute instead of checked="checked" without becoming incompatible with certain browsers? This also includes selected, disabled, readonly and so on.

It just feels like mindless repetition to type in the same thing twice because of habit, so if anyone knows if this can be skipped without any consequences or not, please share your knowledge.

Example:

Can I always use <input type="checkbox" checked /> instead of <input type="checkbox" checked="checked" />?

Basically a simple question I'm not really sure where to search after;

Is it safe to write checked as an attribute instead of checked="checked" without becoming incompatible with certain browsers? This also includes selected, disabled.

It just feels like mindless repetition to type in the same thing twice because of habit, so if anyone knows if this can be skipped without any consequences or not, please share your knowledge.

Example:

Can I always use <input type="checkbox" checked /> instead of <input type="checkbox" checked="checked" />?

Basically a simple question I'm not really sure where to search after;

Is it safe to write checked as an attribute instead of checked="checked" without becoming incompatible with certain browsers? This also includes selected, disabled, readonly and so on.

It just feels like mindless repetition to type in the same thing twice because of habit, so if anyone knows if this can be skipped without any consequences or not, please share your knowledge.

Example:

Can I always use <input type="checkbox" checked /> instead of <input type="checkbox" checked="checked" />?

Source Link
Robin Castlin
  • 11k
  • 1
  • 30
  • 44
Loading