contenteditable table cells [duplicate] - html

This question already has an answer here:
Javascript, Firefox: how to disable the browser specific cell controls?
(1 answer)
Closed 3 years ago.
Is there anyway to not display the row and column modification (the 2 arrows and cross) when making a table editable. I went through the W3C draft for contenteditable and it doesn't talk anything about the specific cases of different elements.

If I understand you correctly, the following will do it in Firefox (note: apparently the document must be loaded before this command can be executed. See comments below):
document.execCommand("enableInlineTableEditing", null, false);
See also this question: Javascript, Firefox: how to disable the browser specific cell controls?

Related

What does HTML do to unknown colors? [duplicate]

This question already has answers here:
Why does HTML think “chucknorris” is a color?
(9 answers)
Closed 3 years ago.
While reading a chapter of Interneting Is Hard, I clicked on a link to this page on MDN about colors in CSS. It contains this interesting paragraph in a part about problems with color keywords:
HTML only recognizes the 16 basic color keywords found in CSS1, using a specific algorithm to convert unrecognized values (often to completely different colors).
What exactly does this mean? What sort of algorithm does HTML use to attempt to find out what color text is trying to represent? What are the limitations that cause it to mess up? If this is pretty different between browsers, what do Firefox and Chrome do in this scenario?
As the comments say it would most likely default to your element's default or inherited color.
In the browser's inspector the rule would appear as invalid CSS.

Which HTML5 attributes can be a URL? [duplicate]

This question already has answers here:
COMPLETE list of HTML tag attributes which have a URL value?
(2 answers)
Closed 7 years ago.
Obviously a href and img src. Are there any others? How would you search for this?
One of them is certainly srcset on the picture element, well its contains a URL but is maybe one.
Not sure how to properly search for one, maybe browsers have implemented some logic like that?
Mh, at least servo has implemented a generic get_url_attribute function which tries to converts any attribute to a URL https://github.com/servo/servo/blob/master/components/script/dom/element.rs#L997 sorry no help here

How get to know what font family does anchor element use [duplicate]

This question already has answers here:
What do the crossed style properties in Google Chrome devtools mean?
(7 answers)
Closed 7 years ago.
Firefox.
Firebug.
Simple task.
How get to know what font family does anchor element use?
I opened the element in Firebug. And what I see.
Why font info is crossed? How determine what font was used?
Look at the "computed" tab instead. If that doesn't say what font is chosen - then it's probably some browser default and you're out of luck.

Can a textarea belong to multiple forms? [duplicate]

This question already has an answer here:
Multiple form ID's in HTML5's input form attribute
(1 answer)
Closed 8 years ago.
I have a textarea similar to
<textarea name="mytextarea" form="form1 form2"></textarea>
When inspecting the element and viewing node attributes, it shows the form as null. This is in chrome.
Inputs can have multiple form attributes, but can textareas?
It's different from the other question because it pertains to text areas, not other inputs. Though, the result may ultimately be the same.
I received my initial apparently incorrect information from this:
http://www.w3schools.com/tags/tag_textarea.asp
See form on that page. Either way. This can stay closed. It is obviously not implemented in the browsers or ever specified in the spec.
Thanks all.
As this answer states, nowhere on the W3C Spec is stated that the form owner of an element can be a list of IDs. If for some reason, that is working for you, you're still not conforming to standards.
I suggest using jQuery if you want to submit multiple forms at the same time, or duplicate the value of input elements across different forms on submission.

Setting input control focus without javascript [duplicate]

This question already has answers here:
Default html form focus without JavaScript
(5 answers)
Closed 8 years ago.
Is there a way to set the focus in a specific HTML input (a textarea control, actually), without using Javascript?
EDIT: Is possible in HTML5 but the question is about HTML < 5
You can use autofocus in HTML5 documents, but it has little support at present (see chart).
Nope. Sadly JavaScript is required, because it's dynamically modifying the browser on the client-side (what JavaScript was made for).
I don't know of any, other than tabbing to the field or clicking within it.
It depends on how and when you want to set the focus on this textarea. "tabindex" might help you.