{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/html/issues/1042","repository_url":"https://api.github.com/repos/w3c/html","labels_url":"https://api.github.com/repos/w3c/html/issues/1042/labels{/name}","comments_url":"https://api.github.com/repos/w3c/html/issues/1042/comments","events_url":"https://api.github.com/repos/w3c/html/issues/1042/events","html_url":"https://github.com/w3c/html/issues/1042","id":264042921,"number":1042,"title":"propose example attribute for documentation and other uses","user":{"login":"Nick-Levinson","id":10383950,"avatar_url":"https://avatars3.githubusercontent.com/u/10383950?v=4","gravatar_id":"","url":"https://api.github.com/users/Nick-Levinson","html_url":"https://github.com/Nick-Levinson","followers_url":"https://api.github.com/users/Nick-Levinson/followers","following_url":"https://api.github.com/users/Nick-Levinson/following{/other_user}","gists_url":"https://api.github.com/users/Nick-Levinson/gists{/gist_id}","starred_url":"https://api.github.com/users/Nick-Levinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nick-Levinson/subscriptions","organizations_url":"https://api.github.com/users/Nick-Levinson/orgs","repos_url":"https://api.github.com/users/Nick-Levinson/repos","events_url":"https://api.github.com/users/Nick-Levinson/events{/privacy}","received_events_url":"https://api.github.com/users/Nick-Levinson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-09T22:19:42Z","updated_at":"2017-10-11T00:59:11Z","closed_at":null,"author_association":"NONE","body":"For communicating about HTML, teaching it, or other purposes, with an example that should not cause an actual effect in a user agent, even a user agent programmed for private use, an attribute should be specified for the purpose and HTML should specify it. I propose \"example\" for an attribute for any element.\r\n\r\nCase and the use of quotation marks would be as HTML specifies for other attributes. The content value could be any value, including null and absent (no equals sign) and would be formattable as for any other attribute.\r\n\r\nThe content or its absence would not be processed by a user agent.\r\n\r\nHTML 5.1 2d ed. already has room for this (\"[f]or generic extensions that are to be used by multiple independent tools, either this specification should be extended to provide the feature explicitly, or . . .\" (section 3.2.5.9)).\r\n\r\nAn analogy is with domain names, such as example.com and *.test."},"comment":{"url":"https://api.github.com/repos/w3c/html/issues/comments/335650405","html_url":"https://github.com/w3c/html/issues/1042#issuecomment-335650405","issue_url":"https://api.github.com/repos/w3c/html/issues/1042","id":335650405,"user":{"login":"Nick-Levinson","id":10383950,"avatar_url":"https://avatars3.githubusercontent.com/u/10383950?v=4","gravatar_id":"","url":"https://api.github.com/users/Nick-Levinson","html_url":"https://github.com/Nick-Levinson","followers_url":"https://api.github.com/users/Nick-Levinson/followers","following_url":"https://api.github.com/users/Nick-Levinson/following{/other_user}","gists_url":"https://api.github.com/users/Nick-Levinson/gists{/gist_id}","starred_url":"https://api.github.com/users/Nick-Levinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nick-Levinson/subscriptions","organizations_url":"https://api.github.com/users/Nick-Levinson/orgs","repos_url":"https://api.github.com/users/Nick-Levinson/repos","events_url":"https://api.github.com/users/Nick-Levinson/events{/privacy}","received_events_url":"https://api.github.com/users/Nick-Levinson/received_events","type":"User","site_admin":false},"created_at":"2017-10-11T00:59:11Z","updated_at":"2017-10-11T00:59:11Z","author_association":"NONE","body":"No; the misunderstanding was not intended. The code and pre elements do affect browser behavior; that is precisely why they won't work for this purpose. The xmp was inconsistently implemented, which means it was at least in some browsers causing effects; that's not wanted for this proposed element (from issue 1041 combined with this issue) and this proposed attribute. This is for use in documentation where someone, like a student, might copy it into a Web page and it should still have no effect.\r\n\r\nBy reserving it, future use in a spec and private use, if conflicting, would be barred.\r\n\r\nVisit the website at example.com and you'll see no ads, tracking of user behavior, or other things that might confuse someone for whom that should only be an example website domain. It's why you can't use domain names like mydomain.com as if they were example.com. Example.com and a few others are reserved in an RFC so that you can't buy them. That's the analogy to this proposal."}}
{"actor":{"display_login":"Nick-Levinson"}}