What is the `edit` attr in a meta tag

Go To StackoverFlow.com

6

I was looking at jsfiddle's code and saw these lines:

<meta name="description" edit="mootools shell, easy test you snippets before implementing">
<meta name="keywords" edit="mootools,javascript,javascript framework,shell,test">
<meta name="robots" edit="all">

I've never seen the edit attr before. What does it do? I couldn't find any info on w3.org or google

2012-04-03 21:04
by qwertymk
Perhaps it is invalid html? You can pretty much put anything into html, the browsers won't complain. I think they might be using it to provide some data for the js. That is all just a wild speculation though - d_inevitable 2012-04-03 21:08
http://validator.w3.org/check?uri=http%3A%2F%2Fjsfiddle.net&charset=%28detect+automatically%29&doctype=Inline&group= - PeeHaa 2012-04-03 21:10
Ok I guess I am right then, thanks @RepWhoringPeeHa - d_inevitable 2012-04-03 21:11


4

I would bet it's just mistake on their part and the "edit" attribute should have been "content". Maybe you should send them a note and let them know.

Update: I just sent Piotr a note, letting him about it. I'll update my answer with his response (if any).

2012-04-03 21:54
by BluesRockAddict
Yeah those should both be content attributes - Wesley Murch 2012-04-03 22:05
The robots tag actually invalid since "all" isn't a valid option even if content attribute was used. I asked Piotr about it as well - BluesRockAddict 2012-04-03 22:07
@BluesRockAddict: Who's that - qwertymk 2012-04-03 22:15
He's the person behind jsfiddle: http://piotr.zalewa.info - BluesRockAddict 2012-04-03 22:17
Any update on the attr - qwertymk 2012-04-10 02:31
I've received no response from Piotr, so I guess we won't know for sure (or maybe meta tags get fixed eventually) - BluesRockAddict 2012-04-10 04:50


2

The edit attribute is not valid html:

 Line 4, Column 33: there is no attribute "edit"
  <meta name="description" edit="mootools shell, easy test you snippets before …
✉

So this means that it is either used by jsfiddle itself to pass values onto their js, or by some web-crawlers that I do not know of.

I have checked google's crawler, but it doesn't mention any such attributes.

2012-04-03 21:28
by d_inevitable
I kind of doubt they're using something like easy test you snippets in an attribute as a javascript hook for jsfiddle itself... looks more like a mistake - Wesley Murch 2012-04-03 22:06