| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 return attrSet; | 293 return attrSet; |
| 294 } | 294 } |
| 295 | 295 |
| 296 bool HTMLDocument::isCaseSensitiveAttribute(const QualifiedName& attributeName) | 296 bool HTMLDocument::isCaseSensitiveAttribute(const QualifiedName& attributeName) |
| 297 { | 297 { |
| 298 static HashSet<StringImpl*>* htmlCaseInsensitiveAttributesSet = createHtmlCa
seInsensitiveAttributesSet(); | 298 static HashSet<StringImpl*>* htmlCaseInsensitiveAttributesSet = createHtmlCa
seInsensitiveAttributesSet(); |
| 299 bool isPossibleHTMLAttr = !attributeName.hasPrefix() && (attributeName.names
paceURI() == nullAtom); | 299 bool isPossibleHTMLAttr = !attributeName.hasPrefix() && (attributeName.names
paceURI() == nullAtom); |
| 300 return !isPossibleHTMLAttr || !htmlCaseInsensitiveAttributesSet->contains(at
tributeName.localName().impl()); | 300 return !isPossibleHTMLAttr || !htmlCaseInsensitiveAttributesSet->contains(at
tributeName.localName().impl()); |
| 301 } | 301 } |
| 302 | 302 |
| 303 void HTMLDocument::clear() | |
| 304 { | |
| 305 // FIXME: This does nothing, and that seems unlikely to be correct. | |
| 306 // We've long had a comment saying that IE doesn't support this. | |
| 307 // But I do see it in the documentation for Mozilla. | |
| 308 } | |
| 309 | |
| 310 void HTMLDocument::write(DOMWindow* callingWindow, const Vector<String>& text) | 303 void HTMLDocument::write(DOMWindow* callingWindow, const Vector<String>& text) |
| 311 { | 304 { |
| 312 ASSERT(callingWindow); | 305 ASSERT(callingWindow); |
| 313 StringBuilder builder; | 306 StringBuilder builder; |
| 314 for (size_t i = 0; i < text.size(); ++i) | 307 for (size_t i = 0; i < text.size(); ++i) |
| 315 builder.append(text[i]); | 308 builder.append(text[i]); |
| 316 write(builder.toString(), callingWindow->document()); | 309 write(builder.toString(), callingWindow->document()); |
| 317 } | 310 } |
| 318 | 311 |
| 319 void HTMLDocument::writeln(DOMWindow* callingWindow, const Vector<String>& text) | 312 void HTMLDocument::writeln(DOMWindow* callingWindow, const Vector<String>& text) |
| 320 { | 313 { |
| 321 ASSERT(callingWindow); | 314 ASSERT(callingWindow); |
| 322 StringBuilder builder; | 315 StringBuilder builder; |
| 323 for (size_t i = 0; i < text.size(); ++i) | 316 for (size_t i = 0; i < text.size(); ++i) |
| 324 builder.append(text[i]); | 317 builder.append(text[i]); |
| 325 writeln(builder.toString(), callingWindow->document()); | 318 writeln(builder.toString(), callingWindow->document()); |
| 326 } | 319 } |
| 327 | 320 |
| 328 } | 321 } |
| OLD | NEW |