| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 
|  | 2 // for details. All rights reserved. Use of this source code is governed by a | 
|  | 3 // BSD-style license that can be found in the LICENSE file. | 
|  | 4 | 
|  | 5 // TODO(jmesserly): html5lib might be a better home for this. | 
|  | 6 // But at the moment we only need it here. | 
|  | 7 | 
|  | 8 library html5_utils; | 
|  | 9 | 
|  | 10 /** | 
|  | 11  * HTML attributes that expect a URL value. | 
|  | 12  * <http://dev.w3.org/html5/spec/section-index.html#attributes-1> | 
|  | 13  * | 
|  | 14  * Every one of these attributes is a URL in every context where it is used in | 
|  | 15  * the DOM. The comments show every DOM element where an attribute can be used. | 
|  | 16  */ | 
|  | 17 const urlAttributes = const [ | 
|  | 18   'action',     // in form | 
|  | 19   'background', // in body | 
|  | 20   'cite',       // in blockquote, del, ins, q | 
|  | 21   'data',       // in object | 
|  | 22   'formaction', // in button, input | 
|  | 23   'href',       // in a, area, link, base, command | 
|  | 24   'icon',       // in command | 
|  | 25   'manifest',   // in html | 
|  | 26   'poster',     // in video | 
|  | 27   'src',        // in audio, embed, iframe, img, input, script, source, track, | 
|  | 28                 //    video | 
|  | 29 ]; | 
| OLD | NEW | 
|---|