Slashdot Mirror


The NSFW HTML Attribute

phaln writes "Over at The Frosty Mug Revolution, PJ Doland makes a compelling case for a new HTML attribute in the spirit of the highly-regarded 'nofollow' attribute promoted by Google — the NSFW attribute (rel='nsfw'). His original idea has been refined and expanded by positive comments from readers, resulting in a semantic solution to the issue he raises in the original post. From the article: 'Content creators can apply the attribute to paragraph tags, div tags, or any other block-level element. Doing so will indicate that the enclosed content is not safe for work. Visitors will be able to configure their browsers to block display of just the content enclosed by the flagged block-level element. This isn't about censorship. It is about making us all less likely to accidentally click on a goatse.cx link when our boss is standing behind us. It is also about making us feel more comfortable posting possibly objectionable content by giving visitors a means of easily filtering that content.'"

1 of 273 comments (clear)

  1. Absolutely /not/ semantic by kurtmckee · · Score: 5, Informative

    The rel attribute is designed to specify a forward relationship with the current document. Google broke that when they proposed 'nofollow' (a nice idea that does not appear to have solved the spam problem except for Google's spidering of blogs). Further, you can't add it to images and paragraphs and everything else this guy is envisioning. The rel attribute is only applicable to a and link tags, and to use it otherwise deviates from the XHTML spec.