OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
3 * reserved. | |
3 * | 4 * |
4 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
6 * are met: | 7 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 11 * notice, this list of conditions and the following disclaimer in the |
11 * documentation and/or other materials provided with the distribution. | 12 * documentation and/or other materials provided with the distribution. |
12 * | 13 * |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 enum EntityMask { | 45 enum EntityMask { |
45 EntityAmp = 0x0001, | 46 EntityAmp = 0x0001, |
46 EntityLt = 0x0002, | 47 EntityLt = 0x0002, |
47 EntityGt = 0x0004, | 48 EntityGt = 0x0004, |
48 EntityQuot = 0x0008, | 49 EntityQuot = 0x0008, |
49 EntityNbsp = 0x0010, | 50 EntityNbsp = 0x0010, |
50 EntityTab = 0x0020, | 51 EntityTab = 0x0020, |
51 EntityLineFeed = 0x0040, | 52 EntityLineFeed = 0x0040, |
52 EntityCarriageReturn = 0x0080, | 53 EntityCarriageReturn = 0x0080, |
53 | 54 |
54 // Non-breaking space needs to be escaped in innerHTML for compatibility reaso n. See http://trac.webkit.org/changeset/32879 | 55 // Non-breaking space needs to be escaped in innerHTML for compatibility |
55 // However, we cannot do this in a XML document because it does not have the e ntity reference defined (See the bug 19215). | 56 // reason. See http://trac.webkit.org/changeset/32879. However, we cannot do |
Nico
2016/10/06 03:26:21
nit:s/reason/reasons/
dcheng
2016/10/06 03:59:23
Done.
| |
57 // this in a XML document because it does not have the entity reference | |
Nico
2016/10/06 03:26:21
nit: s/in a/in an/
dcheng
2016/10/06 03:59:23
Done.
| |
58 // defined (see the bug 19215). | |
Nico
2016/10/06 03:26:21
nit: s/the//
dcheng
2016/10/06 03:59:23
Done.
| |
56 EntityMaskInCDATA = 0, | 59 EntityMaskInCDATA = 0, |
57 EntityMaskInPCDATA = EntityAmp | EntityLt | EntityGt, | 60 EntityMaskInPCDATA = EntityAmp | EntityLt | EntityGt, |
58 EntityMaskInHTMLPCDATA = EntityMaskInPCDATA | EntityNbsp, | 61 EntityMaskInHTMLPCDATA = EntityMaskInPCDATA | EntityNbsp, |
59 EntityMaskInAttributeValue = EntityAmp | EntityQuot | EntityLt | EntityGt | | 62 EntityMaskInAttributeValue = EntityAmp | EntityQuot | EntityLt | EntityGt | |
60 EntityTab | | 63 EntityTab | |
61 EntityLineFeed | | 64 EntityLineFeed | |
62 EntityCarriageReturn, | 65 EntityCarriageReturn, |
63 EntityMaskInHTMLAttributeValue = EntityAmp | EntityQuot | EntityNbsp, | 66 EntityMaskInHTMLAttributeValue = EntityAmp | EntityQuot | EntityNbsp, |
64 }; | 67 }; |
65 | 68 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
116 const Element&, | 119 const Element&, |
117 const Attribute&); | 120 const Attribute&); |
118 | 121 |
119 const EAbsoluteURLs m_resolveURLsMethod; | 122 const EAbsoluteURLs m_resolveURLsMethod; |
120 SerializationType m_serializationType; | 123 SerializationType m_serializationType; |
121 }; | 124 }; |
122 | 125 |
123 } // namespace blink | 126 } // namespace blink |
124 | 127 |
125 #endif | 128 #endif |
OLD | NEW |