From cam at mcc.id.au Thu Jan 1 00:57:57 2009 From: cam at mcc.id.au (Cameron McCormack) Date: Thu, 1 Jan 2009 19:57:57 +1100 Subject: [whatwg] Return type of HTMLCanvasElement::getContext() Message-ID: <20090101085757.GA11964@arc.mcc.id.au> I think the return type of HTMLCanvasElement::getContext() should go back to being an object instead of any. I don?t see any situation where that method would usefully return a non-object value. I suggest just using ?Object? instead of ?DOMObject?, too. DOMObject is just a typedef for Object in DOM Core. -- Cameron McCormack ? http://mcc.id.au/ From cam at mcc.id.au Thu Jan 1 00:59:35 2009 From: cam at mcc.id.au (Cameron McCormack) Date: Thu, 1 Jan 2009 19:59:35 +1100 Subject: [whatwg] Misnamed attribute on HTMLFormElement Message-ID: <20090101085935.GB11964@arc.mcc.id.au> The IDL currently says: interface HTMLFormElement ? { attribute DOMString accept-charset; ? }; I assume that should be acceptCharset? If you are actually wanting a property on an ES host object named ?accept-charset?, then some additional functionality in Web IDL to define that will be needed. -- Cameron McCormack ? http://mcc.id.au/ From cam at mcc.id.au Thu Jan 1 01:14:06 2009 From: cam at mcc.id.au (Cameron McCormack) Date: Thu, 1 Jan 2009 20:14:06 +1100 Subject: [whatwg] Window::showModalDialog() missing [Variadic] Message-ID: <20090101091406.GC11964@arc.mcc.id.au> The >1 argument version of Window::showModalDialog() is missing a [Variadic] on the second argument: interface Window { ? any showModalDialog(in DOMString url); any showModalDialog(in DOMString url, in any arguments); ? }; Since no arguments need be passed for those designated with [Variadic], the two operations could just be combined into one: interface Window { ? any showModalDialog(in DOMString url, [Variadic] in any arguments); ? }; -- Cameron McCormack ? http://mcc.id.au/ From timeless at gmail.com Thu Jan 1 02:59:43 2009 From: timeless at gmail.com (timeless) Date: Thu, 1 Jan 2009 12:59:43 +0200 Subject: [whatwg] Misnamed attribute on HTMLFormElement In-Reply-To: <20090101085935.GB11964@arc.mcc.id.au> References: <20090101085935.GB11964@arc.mcc.id.au> Message-ID: <26b395e60901010259k4edd204aufd2b862dcfc4abd3@mail.gmail.com> On Thu, Jan 1, 2009 at 10:59 AM, Cameron McCormack wrote: > The IDL currently says: > > interface HTMLFormElement ? { > attribute DOMString accept-charset; > ? > }; > > I assume that should be acceptCharset? If you are actually wanting a > property on an ES host object named "accept-charset", then some > additional functionality in Web IDL to define that will be needed. I would really how web idl would not support that feature :) From mail at tobyinkster.co.uk Thu Jan 1 07:24:50 2009 From: mail at tobyinkster.co.uk (Toby A Inkster) Date: Thu, 1 Jan 2009 15:24:50 +0000 Subject: [whatwg] Trying to work out the problems solved by RDFa Message-ID: The use cases for RDFa are pretty much the same as those for Microformats. For example, if a person's name and contact details are marked up on a web page using hCard, the user-agent can offer to, say, add the person to your address book, or add them as a friend on a social networking site, or add a reminder about that person's birthday to your calendar. If an event is marked up on a web page using hCalendar, then the user- agent could offer to add it to a calendar, or provide the user with a map of its location, or add it to a timeline that the user is building for their school history project. Providing rich semantics for the information on a web page allows the user-agent to know what's on a page, and step in and perform helpful tasks for the user. So why RDFa and not Microformats? Firstly, RDFa provides a single unified parsing algorithm that Microformats do not. Separate parsers need to be created for hCalendar, hReview, hCard, etc, as each Microformat has its own unique parsing quirks. For example, hCard has N-optimisation and ORG- optimisation which aren't found in hCalendar. With RDFa, a single algorithm is used to parse everything: contacts, events, places, cars, songs, whatever. Secondly, as the result of having one single parsing algorithm, decentralised development is possible. If I want a way of marking up my iguana collection semantically, I can develop that vocabulary without having to go through a central authority. Because URIs are used to identify vocabulary terms, I can be sure that my vocabulary won't clash with other people's vocabularies. It can be argued that going through a community to develop vocabularies is beneficial, as it allows the vocabulary to be built by "many minds" - RDFa does not prevent this, it just gives people alternatives to community development. Lastly, there are a lot of parsing ambiguities for many Microformats. One area which is especially fraught is that of scoping. The editors of many current draft Microformats[1] would like to allow page authors to embed licensing data - e.g. to say that a particular recipe for a pie is licensed under a Creative Commons licence. However, it has been noted that the current rel=license Microformat can not be re-used within these drafts, because virtually all existing rel=license implementations will just assume that the license applies to the whole page rather than just part of it. RDFa has strong and unambiguous rules for scoping - a license, for example, could apply to a section of the page, or one particular image. RDFa was largely borne of looking at Microformats, looking at what was successful about them, considering problems with them, and finding ways to resolve those problems. ____ 1. It has been discussed in hAudio, figure, hRecipe and others. -- Toby A Inkster From alex.baldacchino at email.it Thu Jan 1 10:17:49 2009 From: alex.baldacchino at email.it (Calogero Alex Baldacchino) Date: Thu, 01 Jan 2009 19:17:49 +0100 Subject: [whatwg] Spellchecking mark III In-Reply-To: <6E21D56C-D8D1-4135-B434-44824351CC6E@apple.com> References: <00be01c69880$ca66fa20$3401a8c0@TERRA> <449F56E8.5030309@earthlink.net> <003001c69991$55e53470$3401a8c0@TERRA> <44ACEBF1.30408@mozilla.org> <8AD09628-5B9E-4D0F-BC76-8FA930E0B1DD@geekhood.net> <11e306600812311226w6969190fv50c19033c4d73a36@mail.gmail.com> <6E21D56C-D8D1-4135-B434-44824351CC6E@apple.com> Message-ID: <495D08CD.4030806@email.it> Maciej Stachowiak ha scritto: > > On Dec 31, 2008, at 12:26 PM, Robert O'Callahan wrote: > >> On Thu, Jan 1, 2009 at 4:15 AM, Maciej Stachowiak > > wrote: >> >> 2) The proposal Hixie linked seems way overengineered for this >> purpose. First, it allows spellchecking to be explicitly turned >> on, potentially overriding normal defaults, but that seems wrong; >> an should never spellcheck regardless of the >> page author says. I can't see any valid use case for the author >> turning spellchecking on regardless of UA defaults or user >> preferences. >> >> >> It allows you to have a region of text where spellchecking is >> disabled via the spellcheck attribute, but containing subregions >> where spellchecking is enabled. > > It seems to me you would have to have a lot of custom code to maintain > the boundaries between such regions during editing operations for this > to ever work right. Normal text editing would easily lead to text > moving across the boundaries. There would have to be strong motivating > examples to justify such a hard-to-use feature. > Do you mean a lot of code for a UA or for a webapp developer? As far as I can tell (and guess), in both cases one could make things easy, just ckecking for mispelled words basing on where a bounch of text is pasted in, using an element with a certain behaviour as a fixed boundary (as when some text is copied and pasted from a box to another after the user has disallowed, for some reason, spell checking for only one of them - if allowed by the UA). As far as boxes are styled and described in order to make it clear for the user what's going on (and the UA provides a mean to bypass an author's choice -- as it happens when users don't allow a script to intercept right clicks), that should work fine. Otherwise, if a finer granularity in felt as necessary to correctly implement such (e.g. to allow a user to modify a certain region boundaries), I think that's not very different than changing a random selection style in a rich text editor (= same algorithms might be used to determine boundaries). >> >> Second, it allows spellchecking to be controlled at a finer >> granularity than editability, for which again I think there is no >> valid use case. Both of these aspects make the feature more >> complicated to implement and harder to understand, compared to >> just having a way to only disable spellchecking at the same >> granularity as editing. >> >> A use case is editable program code, where spellchecking is disabled, >> but where spellchecking is enabled inside comments. Maybe that sounds >> a little far-fetched for today's Web applications, but some IDEs >> (e.g. Eclipse) support this so it seems like something we'd want in >> the future. > > This sounds like a pretty ill-conceived feature. It is very common for > comments to include code, or fragments of code (such as variable > names) mixed with natural language. (I was unable to find any evidence > of spellchecking comments in the copy of Eclipse I downloaded, so I > can't comment on the details.) > Well, a few outlined words shouldn't be so bothering as (almost) everything you write being marked as misspelled while writing one's code... Anyway, either the editor interface or the UA (bypassing it) might allow the user to change the default/authored behaviour at will, thus one might first wright a comment, then enable spell checking to verify no words other than code fragments are misspelled, and lastly disable it to make any annoying underscore disappear. Furthermore, a user might be allowed to turn off any checking for a certain word (in its first occurrence, or for the whole document), as it happens in wordprocessors when ignoring a misspelled term, and which may be a natural evolution for UAs' spell checkers. Or, perhaps, a code fragment might be put inside a further, unchecked subregion created by mean of some option in the editor interface. > Furthermore, other IDEs generally don't attempt to do this, and I > can't think of other application categories that would do something > similar. > Well, historically IDEs didn't had a built-in spell checker, while latest browsers do have, thus such might be or become a value added in a web-based IDE, if used "cum grano salis". However, I have no strong feeling for "spellcheck" vs "nospellcheck", as proposed by Kornel Lesi?ski, I can see a few use cases for both, and perhaps possible solutions to thecnical problems implementing them. I think a bit of control over spell checking may be useful, and spell checking might be worth to be takent into account by standards as a feature going to be widespread in current and future web browsers. I guess introducing such an attribute (or the alike) would have consequences for styling, and perhaps influence CSS, for instance by suggesting the introduction of a ":misspelled" pseudo element (or the alike) to allow a proper styling of mispelled words (according to an editable element style) -- though such might be proposed independently; I'm just considering there are reasons to take spell checking into account for web related standards, since browsers are implementing such a feature. Best regards and happy 2009, Alex -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f Sponsor: Prova il servizio di Email Marketing di Email.it, incrementi la visibilita' della tua azienda e trovi nuovi clienti. * Liste a partire da 10.000 contatti per soli 250 Euro Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8351&d=1-1 From andi at takkaria.org Thu Jan 1 10:43:05 2009 From: andi at takkaria.org (Andi Sidwell) Date: Thu, 01 Jan 2009 18:43:05 +0000 Subject: [whatwg] Trying to work out the problems solved by RDFa In-Reply-To: References: Message-ID: <495D0EB9.3090407@takkaria.org> On 2009-01-01 15:24, Toby A Inkster wrote: > The use cases for RDFa are pretty much the same as those for Microformats. Right, but microformats can be used without any changes to the HTML language, whereas RDFa requires such changes. If they fulfill the same use cases, then there's not much point in adding RDFa. > For example, if a person's name and contact details are marked up on a > web page using hCard, the user-agent can offer to, say, add the person > to your address book, or add them as a friend on a social networking > site, or add a reminder about that person's birthday to your calendar. > > If an event is marked up on a web page using hCalendar, then the > user-agent could offer to add it to a calendar, or provide the user with > a map of its location, or add it to a timeline that the user is building > for their school history project. > > Providing rich semantics for the information on a web page allows the > user-agent to know what's on a page, and step in and perform helpful > tasks for the user. > > So why RDFa and not Microformats? > > Firstly, RDFa provides a single unified parsing algorithm that > Microformats do not. Separate parsers need to be created for hCalendar, > hReview, hCard, etc, as each Microformat has its own unique parsing > quirks. For example, hCard has N-optimisation and ORG-optimisation which > aren't found in hCalendar. With RDFa, a single algorithm is used to > parse everything: contacts, events, places, cars, songs, whatever. This is not necessarily beneficial. If you have separate parsing algorithms, you can code in shortcuts for common use-cases and thus optimise the authoring experience. Also, as has been pointed out before in the distributed extensibility debate, parsing is a very small part of doing useful things with content. > Secondly, as the result of having one single parsing algorithm, > decentralised development is possible. If I want a way of marking up my > iguana collection semantically, I can develop that vocabulary without > having to go through a central authority. You can develop vocabularies without going through a central authority already, via class or id, and many people already do. > Because URIs are used to > identify vocabulary terms, I can be sure that my vocabulary won't clash > with other people's vocabularies. Again, you can do this with class, by putting your domain name in the class attribute. It also depends on how much of an issue you think clashes will be with an iguana collection-- I would suggest that due to the specialised nature of the markup, clashes would be quite unlikely. > It can be argued that going through a > community to develop vocabularies is beneficial, as it allows the > vocabulary to be built by "many minds" - RDFa does not prevent this, it > just gives people alternatives to community development. RDFa does not give anything over what the class attribute does in terms of community vs individual development, so this doesn't really speak in RDFa's favour. > Lastly, there are a lot of parsing ambiguities for many Microformats. > One area which is especially fraught is that of scoping. The editors of > many current draft Microformats[1] would like to allow page authors to > embed licensing data - e.g. to say that a particular recipe for a pie is > licensed under a Creative Commons licence. However, it has been noted > that the current rel=license Microformat can not be re-used within these > drafts, because virtually all existing rel=license implementations will > just assume that the license applies to the whole page rather than just > part of it. RDFa has strong and unambiguous rules for scoping - a > license, for example, could apply to a section of the page, or one > particular image. Are there other cases where this granularity of scoping would be genuinely helpful? If not, it would seem better to work out a solution for scoping licence information instead of bringing in a whole new vocabulary to solve it. What would you do with scoped copyright information, anyway? I can see images being an issue, but ideally information about a resource should be kept in that resource, and as such the licence should be embedded in the image rather than given by a Web page. In the case of particular sections having particular licences, is there any practical use of marking up different sections with different licences over just doing that with text? > RDFa was largely borne of looking at Microformats, looking at what was > successful about them, considering problems with them, and finding ways > to resolve those problems. Andi From cam at mcc.id.au Thu Jan 1 17:35:18 2009 From: cam at mcc.id.au (Cameron McCormack) Date: Fri, 2 Jan 2009 12:35:18 +1100 Subject: [whatwg] Window::applicationCache missing Message-ID: <20090102013518.GC14295@arc.mcc.id.au> The applicationCache attribute on the Window interface seems to be missing. -- Cameron McCormack ? http://mcc.id.au/ From chaals at opera.com Thu Jan 1 22:12:55 2009 From: chaals at opera.com (Charles McCathieNevile) Date: Fri, 02 Jan 2009 17:12:55 +1100 Subject: [whatwg] Trying to work out the problems solved by RDFa In-Reply-To: <495D0EB9.3090407@takkaria.org> References: <495D0EB9.3090407@takkaria.org> Message-ID: On Fri, 02 Jan 2009 05:43:05 +1100, Andi Sidwell wrote: > On 2009-01-01 15:24, Toby A Inkster wrote: >> The use cases for RDFa are pretty much the same as those for >> Microformats. > > Right, but microformats can be used without any changes to the HTML > language, whereas RDFa requires such changes. If they fulfill the same > use cases, then there's not much point in adding RDFa. ... >> So why RDFa and not Microformats? (I think the question should be why RDFa is needed *as well as* ?formats) >> Firstly, RDFa provides a single unified parsing algorithm that >> Microformats do not. ... > This is not necessarily beneficial. If you have separate parsing > algorithms, you can code in shortcuts for common use-cases and thus > optimise the authoring experience. On the other hand, you cannot parse information until you know how it is encoded, and information encoded in RDFa can be parsed without knowing more. And not only can you optimise your parsing for a given algorithm, you can also do for a known vocabulary - or you can optimise the post-parsing treatment. > Also, as has been pointed out before in the distributed extensibility > debate, parsing is a very small part of doing useful things with content. Yes. However many of the use cases that I think justify the inclusion of RDFa are already very small on their own, and valuable when several vocabularies are combined. So being able to do off-the-shelf parsing is valuable, compared to working out how to parse a combination of formats together. >> Secondly, as the result of having one single parsing algorithm, >> decentralised development is possible. If I want a way of marking up my >> iguana collection semantically, I can develop that vocabulary without >> having to go through a central authority. > > You can develop vocabularies without going through a central authority > already, via class or id, and many people already do. > >> Because URIs are used to >> identify vocabulary terms, I can be sure that my vocabulary won't clash >> with other people's vocabularies. > > Again, you can do this with class, by putting your domain name in the > class attribute. It also depends on how much of an issue you think > clashes will be with an iguana collection-- I would suggest that due to > the specialised nature of the markup, clashes would be quite unlikely. It depends how many people work on iguana collections - or Old Norse and Anglo Saxon text, which was the use case that got me involved in the Web in the very early 90s. It turns out that people don't, in the ?formats world, use unambiguous names, especially when they are privately developing their own information. By contrast, those who come from an RDF world do this by habit. >> It can be argued that going through a >> community to develop vocabularies is beneficial, as it allows the >> vocabulary to be built by "many minds" - RDFa does not prevent this, it >> just gives people alternatives to community development. > > RDFa does not give anything over what the class attribute does in terms > of community vs individual development, so this doesn't really speak in > RDFa's favour. In principle no, but in real world usage the class attribute is considered something that is primarily local, whereas RDFa is generally used by people who have a broader outlook on the desirable permanence and re-usability of their data. >> Lastly, there are a lot of parsing ambiguities for many Microformats. >> One area which is especially fraught is that of scoping. The editors of >> many current draft Microformats[1] would like to allow page authors to >> embed licensing data - e.g. to say that a particular recipe for a pie is >> licensed under a Creative Commons licence. However, it has been noted >> that the current rel=license Microformat can not be re-used within these >> drafts, because virtually all existing rel=license implementations will >> just assume that the license applies to the whole page rather than just >> part of it. RDFa has strong and unambiguous rules for scoping - a >> license, for example, could apply to a section of the page, or one >> particular image. > > Are there other cases where this granularity of scoping would be > genuinely helpful? If not, it would seem better to work out a solution > for scoping licence information... Yes. Being able to describe accessibility of various parts of content, or point to potential replacement content for particular use cases, benefits enormously from such scoping (this is why people who do industrial-scale accessibility often use RDF as their infrastructure). ARIA has already taken the approach of looking for a special-purpose way to do this, which significantly bloats HTML but at least allows important users to satisfy their needs to be able t produce content with certain information included. Government and large enterprises produce content that needs to be maintained, and being able to include production, cataloguing, and similar metadata directly, scoped to the document, would be helpful. As a trivial example, it would be useful to me in working to improve the Web content we produce at Opera to have a nice mechanism for identifying the original source of various parts of a page. > What would you do with scoped copyright information, anyway? I can see > images being an issue, but ideally information about a resource should > be kept in that resource, and as such the licence should be embedded in > the image rather than given by a Web page. In the case of particular > sections having particular licences, is there any practical use of > marking up different sections with different licences over just doing > that with text? Mash-ups. If they have a use-case, and I think it is widely accepted that they do, then it would seem obvious that being able to identify the source of each part, and any conditions that vary between different sources, is a use case. cheers Chaals -- Charles McCathieNevile Opera Software, Standards Group je parle fran?ais -- hablo espa?ol -- jeg l?rer norsk http://my.opera.com/chaals Try Opera: http://www.opera.com From hsivonen at iki.fi Fri Jan 2 02:38:33 2009 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 2 Jan 2009 12:38:33 +0200 Subject: [whatwg] Trying to work out the problems solved by RDFa In-Reply-To: References: Message-ID: <7441982A-967C-4D67-86D9-B70D9EA40FE7@iki.fi> On Jan 1, 2009, at 17:24, Toby A Inkster wrote: > So why RDFa and not Microformats? There's a possibility that this is a false dichotomy and both are bad. > Firstly, RDFa provides a single unified parsing algorithm that > Microformats do not. Separate parsers need to be created for > hCalendar, hReview, hCard, etc, as each Microformat has its own > unique parsing quirks. For example, hCard has N-optimisation and ORG- > optimisation which aren't found in hCalendar. With RDFa, a single > algorithm is used to parse everything: contacts, events, places, > cars, songs, whatever. More to the point, Microformats not only require per-format processing but the processing required for each Microformat isn't specified at all. That's bad. RDFa, on the other hand, uses CURIEs, which is bad. (More generally, I think using URIs as identifiers instead of using them for above-TCP- layer protocol addressing is bad, but relying on the namespace mapping context is even worse.) Have there been any attempts to remove the badness of Microformats without introducing the badness of RDFa in the process? That is, have there been attempts of defining unified parsing while retaining the feel of Microformats without relying on the namespace mapping context from the layer below? If not, why not? I'm assuming that people in the Microformat community have clue. Yet, on the face of it, viewed from outside the community, their formats seem to have a big problem. Why hasn't the community fixed it? Is it a non-problem after all in practice? > Lastly, there are a lot of parsing ambiguities for many > Microformats. One area which is especially fraught is that of > scoping. The editors of many current draft Microformats[1] would > like to allow page authors to embed licensing data - e.g. to say > that a particular recipe for a pie is licensed under a Creative > Commons licence. However, it has been noted that the current > rel=license Microformat can not be re-used within these drafts, > because virtually all existing rel=license implementations will just > assume that the license applies to the whole page rather than just > part of it. RDFa has strong and unambiguous rules for scoping - a > license, for example, could apply to a section of the page, or one > particular image. Is the problem in the case of recipes that the provider of the page navigation around the recipe is unwilling to license the navigation bits under the same license as the content proper? In the case of images, why should a program inferring something about licensing trust assertions made in a different HTTP resource (possibly even from a different Origin)? -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From hsivonen at iki.fi Fri Jan 2 02:58:56 2009 From: hsivonen at iki.fi (Henri Sivonen) Date: Fri, 2 Jan 2009 12:58:56 +0200 Subject: [whatwg] Trying to work out the problems solved by RDFa In-Reply-To: References: <061D9684-D7A9-48F0-A042-F71AEEE865C9@tobyinkster.co.uk> <41E096C93F384F9BA6B0A09A87EF8E97@POCZTOWIEC> <48B5D840.5000704@digitalbazaar.com> Message-ID: <9F72ABC7-E17A-405D-B273-3E767DE72817@iki.fi> On Jan 1, 2009, at 06:41, Charles McCathieNevile wrote: > There are many cases where people build their own dataset and > queries to solve a local problem. As an example, Opera is not > intersted in asking Google to index data related to internal > developer documents, and use it to produce further documentation we > need. However, we do automatically extract various kinds of data > from internal documents and re-use it. While Opera does not in fact > use the RDF toolstack for that process, there are many other large > companies and organisations who do, and who would benefit from being > able to use RDFa in that process. If the data production and consumption are both under the control of one entity (Opera in this case), why does the solution need to be engineered for spontaneous integration of decentralized data sources? Do the savings of using off-the-shelf tools outweigh the cost they impose by not being quite right for any specific purpose? Presumably the Opera-specific processing is more significant than generic parsing. Or is it? It seems that RDFa is motivated by private data and by interchange at the same time. This suggests multiple bilateral access control agreements instead of a Web-like system where data is made available for GETting without prior agreement between the parties. -- Henri Sivonen hsivonen at iki.fi http://hsivonen.iki.fi/ From bhawkeslewis at googlemail.com Fri Jan 2 04:01:34 2009 From: bhawkeslewis at googlemail.com (Benjamin Hawkes-Lewis) Date: Fri, 02 Jan 2009 12:01:34 +0000 Subject: [whatwg] Trying to work out the problems solved by RDFa In-Reply-To: <7441982A-967C-4D67-86D9-B70D9EA40FE7@iki.fi> References: <7441982A-967C-4D67-86D9-B70D9EA40FE7@iki.fi> Message-ID: <495E021E.8010407@googlemail.com> On 2/1/09 10:38, Henri Sivonen wrote: > More to the point, Microformats not only require per-format processing > but the processing required for each Microformat isn't specified at all. > That's bad. Some do have processing specified (at least to some degree): http://microformats.org/wiki/hcard-parsing For the rest, this seems like something fixable, so I'm not sure how this is more to the point? > That is, have > there been attempts of defining unified parsing while retaining the feel > of Microformats without relying on the namespace mapping context from > the layer below? I suppose - * http://microformats.org/wiki/design-patterns (reusable microformat components) * http://microformats.org/wiki/parsing-brainstorming (attempt to actually specify precise parsing rules for all microformats) * http://microformats.org/discuss/mail/microformats-discuss/2008-August/012435.html (proposal for specifying generic mapping of microformats to RDF - I think there's been more detailed work by various parties in this regard, but I'm not sure where best to link to) - are approaching this problem from three different angles. > Why hasn't the community fixed it? I think the microformats community moves slowly, for better or worse, even when it agrees that there's a problem to solve. For example, progress on the problems with the abbr-design-pattern has been snail-like while losing the community an important user (the BBC), although admittedly the problems are basically intractable in HTML4/XHTML1. I'm not sure how far the community as a whole does or doesn't view the lack of unified parsing as one of its bigger problems; I'm no spokesman though. > Is it a non-problem after all in practice? It's an additional barrier to creating and using (especially new) microformats or other extractable patterns. The microformats community isn't there to support the creation of new extractable patterns outside the microformats community, which is where an iguana database pattern would likely need to be. It could of course be the RDFa curie is worse than the disease. An advantage of RDFa that is not related to curies and for which the three approaches towards unified extraction mentioned above are not a substitute is that RDFa provides a generic way to include hidden machine-friendly equivalents to human-readable information in the form of the (not especially well-named) "content" attribute. http://www.w3.org/TR/rdfa-syntax/#rdfa-attributes In general, this is something microformats rightly try to avoid: http://microformats.org/wiki/principles But sometimes it's unavoidable: http://microformats.org/wiki/machine-data http://microformats.org/wiki/value-excerption-pattern-issues I do not believe that HTML5 as currently specified would remove the need to employ similar hacks as are mentioned on those pages, although it will remove the need in many cases (e.g. for datetimes within a given range), which is an improvement. > Is the problem in the case of recipes that the provider of the page > navigation around the recipe is unwilling to license the navigation bits > under the same license as the content proper? I thought Toby's example was that each recipe on the page needed a different licence, rather than a distinction between the main content area and the navigation. > In the case of images, why should a program inferring something about > licensing trust assertions made in a different HTTP resource (possibly > even from a different Origin)? Why should it trust assertions made in the same resource? For example, presumably you could download an image, change its licencing metadata, and host it at your own Origin? Admittedly, that's a little more work than just hotlinking. -- Benjamin Hawkes-Lewis From jackalmage at gmail.com Fri Jan 2 08:49:02 2009 From: jackalmage at gmail.com (Tab Atkins Jr.) Date: Fri, 2 Jan 2009 10:49:02 -0600 Subject: [whatwg] Trying to work out the problems solved by RDFa In-Reply-To: References: <061D9684-D7A9-48F0-A042-F71AEEE865C9@tobyinkster.co.uk> <41E096C93F384F9BA6B0A09A87EF8E97@POCZTOWIEC> <48B5D840.5000704@digitalbazaar.com> Message-ID: On Wed, Dec 31, 2008 at 10:41 PM, Charles McCathieNevile wrote: > A standard way to include arbitrary data in a web page and extract it for > machine processing, without having to pre-coordinate their data models. This isn't a requirement (or in other words, a problem), it's a solution. What are the problems that need to be solved, and for which having a standard way to include arbitrary data in a web page and have it easily extractable would be helpful? (Note: I think there certainly *are* problems that *would* find this helpful, I'm just trying to lead your argument into the right direction.) (As well, since the discussion is about RDFa specifically, not data-markup in general, what are the problems that need RDFa *specifically* as a solution, as compared to the myriad other ways to embed data?) > Since many people use RDF as an interchange, storage and processing format > for this kind of data (because it provides for automated mapping of data > from one schema to many others, without requiring anyone to touch the > original schemata or agree in advance how they should be created), I believe > there is a requirement for a method that allows third parties to include RDF > data in, and extract it from information encoded within an HTML page. Solutions for this already exist; embedded N3 in a [1] http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2007-May/011561.html Cheers, kats From bzbarsky at MIT.EDU Thu Jan 15 08:28:10 2009 From: bzbarsky at MIT.EDU (Boris Zbarsky) Date: Thu, 15 Jan 2009 11:28:10 -0500 Subject: [whatwg] When do scripts execute? (4.3.1) In-Reply-To: <20090115154846.C88A714D983@looneymail-mx2.g.dreamhost.com> References: <20090115154846.C88A714D983@looneymail-mx2.g.dreamhost.com> Message-ID: <496F641A.6030002@mit.edu> Kartikaya Gupta wrote: > sn = document.createElement( 'script' ); > sn.setAttribute( 'type', 'text/javascript' ); > document.body.appendChild( sn ); // this *should* run an empty script block and do nothing That looks like a bug in the spec to me. Empty scripts with no @src are not executed when inserted into the DOM, and are executed if they ever become nonempty or have their src set. -Boris From dhtmlkitchen at gmail.com Thu Jan 15 11:27:26 2009 From: dhtmlkitchen at gmail.com (Garrett Smith) Date: Thu, 15 Jan 2009 11:27:26 -0800 Subject: [whatwg] HTML 5 : Misconceptions Documented In-Reply-To: References: <3B0990F66B884008A2EE6AB89CB9AE83@POCZTOWIEC> Message-ID: (back on list) On Wed, Jan 14, 2009 at 2:04 PM, Ian Hickson wrote: > On Tue, 13 Jan 2009, Garrett Smith wrote: >> On Tue, Jan 13, 2009 at 6:41 PM, Ian Hickson wrote: >> > >> > There were a number of e-mails on this thread regarding how Collections >> >> Which thread are referring to? > > The one entitled "HTML 5 : Misconceptions Documented". > Sorry. > >> > and other interfaces worked with respect to properties being exposed. >> > I have now updated the HTML5 spec to take into account the new >> > features in WebIDL that expose these properties. Please let me know if >> > I missed one. >> I see. It looks like you've mimicked current methods of HTMLCollection - item - and - namedItem - on the form. These methods delegate to same-named methods on the elements collection. I see several paragraphs that describe how HTMLFormElement has same-named methods that delegate to HTMLCollection. http://www.whatwg.org/specs/web-apps/current-work/#htmlformelement The specification does not say that HTMLFormElement implement HTMLCollection. The spec has defined new behavior, "past names map":- | Each form element has a mapping of names to elements called the | *past names map*. It is us