Changeset 21470 in webkit
- Timestamp:
- May 14, 2007 6:32:35 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 2 deleted
- 58 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r21467 r21470 1 2007-05-14 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Alice. 4 5 - Tests for http://bugs.webkit.org/show_bug.cgi?id=13541 6 REGRESSION: Setting a DOMString attribute to JS null in the 7 JS bindings should default to converting to the empty string 8 9 * fast/dom/document-attribute-js-null-expected.txt: Added. 10 * fast/dom/document-attribute-js-null.html: Added. 11 * fast/dom/element-attribute-js-null-expected.txt: Added. 12 * fast/dom/element-attribute-js-null.html: Added. 13 * fast/forms/input-null-expected.txt: Removed. 14 * fast/forms/input-null.html: Removed. 15 1 16 2007-05-14 Justin Garcia <justin.garcia@apple.com> 2 17 -
trunk/WebCore/ChangeLog
r21469 r21470 1 2007-05-14 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Alice! 4 5 - Patch for http://bugs.webkit.org/show_bug.cgi?id=13541 6 REGRESSION: Setting a DOMString attribute to JS null in the 7 JS bindings should default to converting to the empty string 8 9 Convert JS null to the empty string when passing it to an attribute that takes 10 a DOMString. 11 12 Test: fast/dom/document-attribute-js-null.html 13 Test: fast/dom/element-attribute-js-null.html 14 15 * bindings/js/kjs_dom.cpp: 16 (KJS::DOMNode::putValueProperty): 17 * bindings/js/kjs_html.cpp: 18 (KJS::JSHTMLDocument::putValueProperty): 19 (KJS::JSHTMLElement::objectSetter): 20 (KJS::JSHTMLElement::embedSetter): 21 (KJS::JSHTMLElement::tableSetter): 22 (KJS::JSHTMLElement::tableCaptionSetter): 23 (KJS::JSHTMLElement::tableColSetter): 24 (KJS::JSHTMLElement::tableSectionSetter): 25 (KJS::JSHTMLElement::tableRowSetter): 26 (KJS::JSHTMLElement::tableCellSetter): 27 (KJS::JSHTMLElement::frameSetSetter): 28 (KJS::JSHTMLElement::frameSetter): 29 (KJS::JSHTMLElement::iFrameSetter): 30 (KJS::JSHTMLElement::marqueeSetter): 31 (KJS::JSHTMLElement::putValueProperty): 32 * bindings/js/kjs_html.h: 33 * dom/Document.idl: 34 * dom/Node.idl: 35 * html/HTMLAnchorElement.idl: 36 * html/HTMLAppletElement.idl: 37 * html/HTMLAreaElement.idl: 38 * html/HTMLBRElement.idl: 39 * html/HTMLBaseElement.idl: 40 * html/HTMLBaseFontElement.idl: 41 * html/HTMLBlockquoteElement.idl: 42 * html/HTMLBodyElement.idl: 43 * html/HTMLButtonElement.idl: 44 * html/HTMLDivElement.idl: 45 * html/HTMLDocument.idl: 46 * html/HTMLElement.idl: 47 * html/HTMLEmbedElement.idl: 48 * html/HTMLFontElement.idl: 49 * html/HTMLFormElement.idl: 50 * html/HTMLFrameElement.idl: 51 * html/HTMLFrameSetElement.idl: 52 * html/HTMLHRElement.idl: 53 * html/HTMLHeadElement.idl: 54 * html/HTMLHeadingElement.idl: 55 * html/HTMLHtmlElement.idl: 56 * html/HTMLIFrameElement.idl: 57 * html/HTMLImageElement.idl: 58 * html/HTMLInputElement.idl: 59 * html/HTMLIsIndexElement.idl: 60 * html/HTMLLIElement.idl: 61 * html/HTMLLabelElement.idl: 62 * html/HTMLLegendElement.idl: 63 * html/HTMLLinkElement.idl: 64 * html/HTMLMapElement.idl: 65 * html/HTMLMetaElement.idl: 66 * html/HTMLModElement.idl: 67 * html/HTMLOListElement.idl: 68 * html/HTMLObjectElement.idl: 69 * html/HTMLOptGroupElement.idl: 70 * html/HTMLOptionElement.idl: 71 * html/HTMLParagraphElement.idl: 72 * html/HTMLParamElement.idl: 73 * html/HTMLQuoteElement.idl: 74 * html/HTMLScriptElement.idl: 75 * html/HTMLSelectElement.idl: 76 * html/HTMLStyleElement.idl: 77 * html/HTMLTableCaptionElement.idl: 78 * html/HTMLTableCellElement.idl: 79 * html/HTMLTableColElement.idl: 80 * html/HTMLTableElement.idl: 81 * html/HTMLTableRowElement.idl: 82 * html/HTMLTableSectionElement.idl: 83 * html/HTMLTextAreaElement.idl: 84 * html/HTMLTitleElement.idl: 85 * html/HTMLUListElement.idl: 86 1 87 2007-05-14 Geoffrey Garen <ggaren@apple.com> 2 88 -
trunk/WebCore/bindings/js/kjs_dom.cpp
r20495 r21470 259 259 switch (token) { 260 260 case NodeValue: 261 node.setNodeValue(value ->toString(exec), exception);261 node.setNodeValue(valueToStringWithNullCheck(exec, value), exception); 262 262 break; 263 263 case Prefix: 264 node.setPrefix(value ->toString(exec), exception);264 node.setPrefix(valueToStringWithNullCheck(exec, value), exception); 265 265 break; 266 266 case TextContent: -
trunk/WebCore/bindings/js/kjs_html.cpp
r21082 r21470 326 326 switch (token) { 327 327 case Title: 328 doc.setTitle(value ->toString(exec));328 doc.setTitle(valueToStringWithNullCheck(exec, value)); 329 329 break; 330 330 case Body: … … 335 335 break; 336 336 case Cookie: 337 doc.setCookie(value ->toString(exec));337 doc.setCookie(valueToStringWithNullCheck(exec, value)); 338 338 break; 339 339 case Location: … … 355 355 case BgColor: 356 356 if (bodyElement) 357 bodyElement->setBgColor(value ->toString(exec));357 bodyElement->setBgColor(valueToStringWithNullCheck(exec, value)); 358 358 break; 359 359 case FgColor: 360 360 if (bodyElement) 361 bodyElement->setText(value ->toString(exec));361 bodyElement->setText(valueToStringWithNullCheck(exec, value)); 362 362 break; 363 363 case AlinkColor: … … 366 366 // document's link colors over and over to the same value and we 367 367 // don't want to incur a style update each time. 368 String newColor = value ->toString(exec);368 String newColor = valueToStringWithNullCheck(exec, value); 369 369 if (bodyElement->aLink() != newColor) 370 370 bodyElement->setALink(newColor); … … 376 376 // document's link colors over and over to the same value and we 377 377 // don't want to incur a style update each time. 378 String newColor = value ->toString(exec);378 String newColor = valueToStringWithNullCheck(exec, value); 379 379 if (bodyElement->link() != newColor) 380 380 bodyElement->setLink(newColor); … … 386 386 // document's link colors over and over to the same value and we 387 387 // don't want to incur a style update each time. 388 String newColor = value ->toString(exec);388 String newColor = valueToStringWithNullCheck(exec, value); 389 389 if (bodyElement->vLink() != newColor) 390 390 bodyElement->setVLink(newColor); … … 393 393 case Dir: 394 394 if (body) 395 body->setDir(value ->toString(exec));395 body->setDir(valueToStringWithNullCheck(exec, value)); 396 396 break; 397 397 case DesignMode: 398 398 { 399 String modeString = value ->toString(exec);399 String modeString = valueToStringWithNullCheck(exec, value); 400 400 Document::InheritedBool mode; 401 401 if (equalIgnoringCase(modeString, "on")) … … 1182 1182 } 1183 1183 1184 void JSHTMLElement::objectSetter(ExecState* exec, int token, JSValue *value, const WebCore::String& str)1184 void JSHTMLElement::objectSetter(ExecState* exec, int token, JSValue* value) 1185 1185 { 1186 1186 HTMLObjectElement& object = *static_cast<HTMLObjectElement*>(impl()); 1187 1187 switch (token) { 1188 1188 // read-only: form 1189 case ObjectCode: { object.setCode( str); return; }1190 case ObjectAlign: { object.setAlign( str); return; }1191 case ObjectArchive: { object.setArchive( str); return; }1192 case ObjectBorder: { object.setBorder( str); return; }1193 case ObjectCodeBase: { object.setCodeBase( str); return; }1194 case ObjectCodeType: { object.setCodeType( str); return; }1189 case ObjectCode: { object.setCode(valueToStringWithNullCheck(exec, value)); return; } 1190 case ObjectAlign: { object.setAlign(valueToStringWithNullCheck(exec, value)); return; } 1191 case ObjectArchive: { object.setArchive(valueToStringWithNullCheck(exec, value)); return; } 1192 case ObjectBorder: { object.setBorder(valueToStringWithNullCheck(exec, value)); return; } 1193 case ObjectCodeBase: { object.setCodeBase(valueToStringWithNullCheck(exec, value)); return; } 1194 case ObjectCodeType: { object.setCodeType(valueToStringWithNullCheck(exec, value)); return; } 1195 1195 // read-only: ObjectContentDocument 1196 case ObjectData: { object.setData( str); return; }1196 case ObjectData: { object.setData(valueToStringWithNullCheck(exec, value)); return; } 1197 1197 case ObjectDeclare: { object.setDeclare(value->toBoolean(exec)); return; } 1198 case ObjectHeight: { object.setHeight( str); return; }1198 case ObjectHeight: { object.setHeight(valueToStringWithNullCheck(exec, value)); return; } 1199 1199 case ObjectHspace: { object.setHspace(value->toInt32(exec)); return; } 1200 case ObjectName: { object.setName( str); return; }1201 case ObjectStandby: { object.setStandby( str); return; }1200 case ObjectName: { object.setName(valueToStringWithNullCheck(exec, value)); return; } 1201 case ObjectStandby: { object.setStandby(valueToStringWithNullCheck(exec, value)); return; } 1202 1202 case ObjectTabIndex: { object.setTabIndex(value->toInt32(exec)); return; } 1203 case ObjectType: { object.setType( str); return; }1204 case ObjectUseMap: { object.setUseMap( str); return; }1203 case ObjectType: { object.setType(valueToStringWithNullCheck(exec, value)); return; } 1204 case ObjectUseMap: { object.setUseMap(valueToStringWithNullCheck(exec, value)); return; } 1205 1205 case ObjectVspace: { object.setVspace(value->toInt32(exec)); return; } 1206 case ObjectWidth: { object.setWidth( str); return; }1207 } 1208 } 1209 1210 void JSHTMLElement::embedSetter(ExecState* , int token, JSValue*, const WebCore::String& str)1206 case ObjectWidth: { object.setWidth(valueToStringWithNullCheck(exec, value)); return; } 1207 } 1208 } 1209 1210 void JSHTMLElement::embedSetter(ExecState* exec, int token, JSValue* value) 1211 1211 { 1212 1212 HTMLEmbedElement& embed = *static_cast<HTMLEmbedElement*>(impl()); 1213 1213 switch (token) { 1214 case EmbedAlign: { embed.setAlign( str); return; }1215 case EmbedHeight: { embed.setHeight( str); return; }1216 case EmbedName: { embed.setName( str); return; }1217 case EmbedSrc: { embed.setSrc( str); return; }1218 case EmbedType: { embed.setType( str); return; }1219 case EmbedWidth: { embed.setWidth( str); return; }1220 } 1221 } 1222 1223 void JSHTMLElement::tableSetter(ExecState* exec, int token, JSValue *value, const WebCore::String& str)1214 case EmbedAlign: { embed.setAlign(valueToStringWithNullCheck(exec, value)); return; } 1215 case EmbedHeight: { embed.setHeight(value->toString(exec)); return; } 1216 case EmbedName: { embed.setName(valueToStringWithNullCheck(exec, value)); return; } 1217 case EmbedSrc: { embed.setSrc(valueToStringWithNullCheck(exec, value)); return; } 1218 case EmbedType: { embed.setType(valueToStringWithNullCheck(exec, value)); return; } 1219 case EmbedWidth: { embed.setWidth(value->toString(exec)); return; } 1220 } 1221 } 1222 1223 void JSHTMLElement::tableSetter(ExecState* exec, int token, JSValue* value) 1224 1224 { 1225 1225 HTMLTableElement& table = *static_cast<HTMLTableElement*>(impl()); … … 1230 1230 // read-only: rows 1231 1231 // read-only: tbodies 1232 case TableAlign: { table.setAlign( str); return; }1233 case TableBgColor: { table.setBgColor( str); return; }1234 case TableBorder: { table.setBorder( str); return; }1235 case TableCellPadding: { table.setCellPadding( str); return; }1236 case TableCellSpacing: { table.setCellSpacing( str); return; }1237 case TableFrame: { table.setFrame( str); return; }1238 case TableRules: { table.setRules( str); return; }1239 case TableSummary: { table.setSummary( str); return; }1240 case TableWidth: { table.setWidth( str); return; }1241 } 1242 } 1243 1244 void JSHTMLElement::tableCaptionSetter(ExecState* exec, int token, JSValue *value, const WebCore::String& str)1232 case TableAlign: { table.setAlign(valueToStringWithNullCheck(exec, value)); return; } 1233 case TableBgColor: { table.setBgColor(valueToStringWithNullCheck(exec, value)); return; } 1234 case TableBorder: { table.setBorder(valueToStringWithNullCheck(exec, value)); return; } 1235 case TableCellPadding: { table.setCellPadding(valueToStringWithNullCheck(exec, value)); return; } 1236 case TableCellSpacing: { table.setCellSpacing(valueToStringWithNullCheck(exec, value)); return; } 1237 case TableFrame: { table.setFrame(valueToStringWithNullCheck(exec, value)); return; } 1238 case TableRules: { table.setRules(valueToStringWithNullCheck(exec, value)); return; } 1239 case TableSummary: { table.setSummary(valueToStringWithNullCheck(exec, value)); return; } 1240 case TableWidth: { table.setWidth(valueToStringWithNullCheck(exec, value)); return; } 1241 } 1242 } 1243 1244 void JSHTMLElement::tableCaptionSetter(ExecState* exec, int token, JSValue* value) 1245 1245 { 1246 1246 HTMLTableCaptionElement& tableCaption = *static_cast<HTMLTableCaptionElement*>(impl()); 1247 1247 if (token == TableCaptionAlign) 1248 tableCaption.setAlign( str);1249 } 1250 1251 void JSHTMLElement::tableColSetter(ExecState* exec, int token, JSValue *value, const WebCore::String& str)1248 tableCaption.setAlign(valueToStringWithNullCheck(exec, value)); 1249 } 1250 1251 void JSHTMLElement::tableColSetter(ExecState* exec, int token, JSValue* value) 1252 1252 { 1253 1253 HTMLTableColElement& tableCol = *static_cast<HTMLTableColElement*>(impl()); 1254 1254 switch (token) { 1255 case TableColAlign: { tableCol.setAlign( str); return; }1256 case TableColCh: { tableCol.setCh( str); return; }1257 case TableColChOff: { tableCol.setChOff( str); return; }1255 case TableColAlign: { tableCol.setAlign(valueToStringWithNullCheck(exec, value)); return; } 1256 case TableColCh: { tableCol.setCh(valueToStringWithNullCheck(exec, value)); return; } 1257 case TableColChOff: { tableCol.setChOff(valueToStringWithNullCheck(exec, value)); return; } 1258 1258 case TableColSpan: { tableCol.setSpan(value->toInt32(exec)); return; } 1259 case TableColVAlign: { tableCol.setVAlign( str); return; }1260 case TableColWidth: { tableCol.setWidth( str); return; }1261 } 1262 } 1263 1264 void JSHTMLElement::tableSectionSetter(ExecState* exec, int token, JSValue *value, const WebCore::String& str)1259 case TableColVAlign: { tableCol.setVAlign(valueToStringWithNullCheck(exec, value)); return; } 1260 case TableColWidth: { tableCol.setWidth(valueToStringWithNullCheck(exec, value)); return; } 1261 } 1262 } 1263 1264 void JSHTMLElement::tableSectionSetter(ExecState* exec, int token, JSValue* value) 1265 1265 { 1266 1266 HTMLTableSectionElement& tableSection = *static_cast<HTMLTableSectionElement*>(impl()); 1267 1267 switch (token) { 1268 case TableSectionAlign: { tableSection.setAlign( str); return; }1269 case TableSectionCh: { tableSection.setCh( str); return; }1270 case TableSectionChOff: { tableSection.setChOff( str); return; }1271 case TableSectionVAlign: { tableSection.setVAlign( str); return; }1268 case TableSectionAlign: { tableSection.setAlign(valueToStringWithNullCheck(exec, value)); return; } 1269 case TableSectionCh: { tableSection.setCh(valueToStringWithNullCheck(exec, value)); return; } 1270 case TableSectionChOff: { tableSection.setChOff(valueToStringWithNullCheck(exec, value)); return; } 1271 case TableSectionVAlign: { tableSection.setVAlign(valueToStringWithNullCheck(exec, value)); return; } 1272 1272 // read-only: rows 1273 1273 } 1274 1274 } 1275 1275 1276 void JSHTMLElement::tableRowSetter(ExecState* exec, int token, JSValue *value, const WebCore::String& str)1276 void JSHTMLElement::tableRowSetter(ExecState* exec, int token, JSValue* value) 1277 1277 { 1278 1278 HTMLTableRowElement& tableRow = *static_cast<HTMLTableRowElement*>(impl()); … … 1281 1281 // read-only: sectionRowIndex 1282 1282 // read-only: cells 1283 case TableRowAlign: { tableRow.setAlign( str); return; }1284 case TableRowBgColor: { tableRow.setBgColor( str); return; }1285 case TableRowCh: { tableRow.setCh( str); return; }1286 case TableRowChOff: { tableRow.setChOff( str); return; }1287 case TableRowVAlign: { tableRow.setVAlign( str); return; }1288 } 1289 } 1290 1291 void JSHTMLElement::tableCellSetter(ExecState* exec, int token, JSValue *value, const WebCore::String& str)1283 case TableRowAlign: { tableRow.setAlign(valueToStringWithNullCheck(exec, value)); return; } 1284 case TableRowBgColor: { tableRow.setBgColor(valueToStringWithNullCheck(exec, value)); return; } 1285 case TableRowCh: { tableRow.setCh(valueToStringWithNullCheck(exec, value)); return; } 1286 case TableRowChOff: { tableRow.setChOff(valueToStringWithNullCheck(exec, value)); return; } 1287 case TableRowVAlign: { tableRow.setVAlign(valueToStringWithNullCheck(exec, value)); return; } 1288 } 1289 } 1290 1291 void JSHTMLElement::tableCellSetter(ExecState* exec, int token, JSValue* value) 1292 1292 { 1293 1293 HTMLTableCellElement& tableCell = *static_cast<HTMLTableCellElement*>(impl()); 1294 1294 switch (token) { 1295 1295 // read-only: cellIndex 1296 case TableCellAbbr: { tableCell.setAbbr( str); return; }1297 case TableCellAlign: { tableCell.setAlign( str); return; }1298 case TableCellAxis: { tableCell.setAxis( str); return; }1299 case TableCellBgColor: { tableCell.setBgColor( str); return; }1300 case TableCellCh: { tableCell.setCh( str); return; }1301 case TableCellChOff: { tableCell.setChOff( str); return; }1296 case TableCellAbbr: { tableCell.setAbbr(valueToStringWithNullCheck(exec, value)); return; } 1297 case TableCellAlign: { tableCell.setAlign(valueToStringWithNullCheck(exec, value)); return; } 1298 case TableCellAxis: { tableCell.setAxis(valueToStringWithNullCheck(exec, value)); return; } 1299 case TableCellBgColor: { tableCell.setBgColor(valueToStringWithNullCheck(exec, value)); return; } 1300 case TableCellCh: { tableCell.setCh(valueToStringWithNullCheck(exec, value)); return; } 1301 case TableCellChOff: { tableCell.setChOff(valueToStringWithNullCheck(exec, value)); return; } 1302 1302 case TableCellColSpan: { tableCell.setColSpan(value->toInt32(exec)); return; } 1303 case TableCellHeaders: { tableCell.setHeaders( str); return; }1304 case TableCellHeight: { tableCell.setHeight( str); return; }1303 case TableCellHeaders: { tableCell.setHeaders(valueToStringWithNullCheck(exec, value)); return; } 1304 case TableCellHeight: { tableCell.setHeight(valueToStringWithNullCheck(exec, value)); return; } 1305 1305 case TableCellNoWrap: { tableCell.setNoWrap(value->toBoolean(exec)); return; } 1306 1306 case TableCellRowSpan: { tableCell.setRowSpan(value->toInt32(exec)); return; } 1307 case TableCellScope: { tableCell.setScope( str); return; }1308 case TableCellVAlign: { tableCell.setVAlign( str); return; }1309 case TableCellWidth: { tableCell.setWidth( str); return; }1310 } 1311 } 1312 1313 void JSHTMLElement::frameSetSetter(ExecState* exec, int token, JSValue *value, const WebCore::String& str)1307 case TableCellScope: { tableCell.setScope(valueToStringWithNullCheck(exec, value)); return; } 1308 case TableCellVAlign: { tableCell.setVAlign(valueToStringWithNullCheck(exec, value)); return; } 1309 case TableCellWidth: { tableCell.setWidth(valueToStringWithNullCheck(exec, value)); return; } 1310 } 1311 } 1312 1313 void JSHTMLElement::frameSetSetter(ExecState* exec, int token, JSValue* value) 1314 1314 { 1315 1315 HTMLFrameSetElement& frameSet = *static_cast<HTMLFrameSetElement*>(impl()); 1316 1316 switch (token) { 1317 case FrameSetCols: { frameSet.setCols( str); return; }1318 case FrameSetRows: { frameSet.setRows( str); return; }1319 } 1320 } 1321 1322 void JSHTMLElement::frameSetter(ExecState* exec, int token, JSValue *value, const WebCore::String& str)1317 case FrameSetCols: { frameSet.setCols(valueToStringWithNullCheck(exec, value)); return; } 1318 case FrameSetRows: { frameSet.setRows(valueToStringWithNullCheck(exec, value)); return; } 1319 } 1320 } 1321 1322 void JSHTMLElement::frameSetter(ExecState* exec, int token, JSValue* value) 1323 1323 { 1324 1324 HTMLFrameElement& frameElement = *static_cast<HTMLFrameElement*>(impl()); 1325 1325 switch (token) { 1326 1326 // read-only: FrameContentDocument: 1327 case FrameFrameBorder: { frameElement.setFrameBorder( str); return; }1328 case FrameLongDesc: { frameElement.setLongDesc( str); return; }1329 case FrameMarginHeight: { frameElement.setMarginHeight( str); return; }1330 case FrameMarginWidth: { frameElement.setMarginWidth( str); return; }1331 case FrameName: { frameElement.setName( str); return; }1327 case FrameFrameBorder: { frameElement.setFrameBorder(valueToStringWithNullCheck(exec, value)); return; } 1328 case FrameLongDesc: { frameElement.setLongDesc(valueToStringWithNullCheck(exec, value)); return; } 1329 case FrameMarginHeight: { frameElement.setMarginHeight(valueToStringWithNullCheck(exec, value)); return; } 1330 case FrameMarginWidth: { frameElement.setMarginWidth(valueToStringWithNullCheck(exec, value)); return; } 1331 case FrameName: { frameElement.setName(valueToStringWithNullCheck(exec, value)); return; } 1332 1332 case FrameNoResize: { frameElement.setNoResize(value->toBoolean(exec)); return; } 1333 case FrameScrolling: { frameElement.setScrolling( str); return; }1334 case FrameSrc: { frameElement.setSrc( str); return; }1335 case FrameLocation: { frameElement.setLocation( str); return; }1336 } 1337 } 1338 1339 void JSHTMLElement::iFrameSetter(ExecState* exec, int token, JSValue *value, const WebCore::String& str)1333 case FrameScrolling: { frameElement.setScrolling(valueToStringWithNullCheck(exec, value)); return; } 1334 case FrameSrc: { frameElement.setSrc(valueToStringWithNullCheck(exec, value)); return; } 1335 case FrameLocation: { frameElement.setLocation(valueToStringWithNullCheck(exec, value)); return; } 1336 } 1337 } 1338 1339 void JSHTMLElement::iFrameSetter(ExecState* exec, int token, JSValue* value) 1340 1340 { 1341 1341 HTMLIFrameElement& iFrame = *static_cast<HTMLIFrameElement*>(impl()); 1342 1342 switch (token) { 1343 case IFrameAlign: { iFrame.setAlign( str); return; }1343 case IFrameAlign: { iFrame.setAlign(valueToStringWithNullCheck(exec, value)); return; } 1344 1344 // read-only: IFrameContentDocument 1345 case IFrameFrameBorder: { iFrame.setFrameBorder( str); return; }1346 case IFrameHeight: { iFrame.setHeight( str); return; }1347 case IFrameLongDesc: { iFrame.setLongDesc( str); return; }1348 case IFrameMarginHeight: { iFrame.setMarginHeight( str); return; }1349 case IFrameMarginWidth: { iFrame.setMarginWidth( str); return; }1350 case IFrameName: { iFrame.setName( str); return; }1351 case IFrameScrolling: { iFrame.setScrolling( str); return; }1352 case IFrameSrc: { iFrame.setSrc( str); return; }1353 case IFrameWidth: { iFrame.setWidth( str); return; }1354 } 1355 } 1356 1357 void JSHTMLElement::marqueeSetter(ExecState* exec, int token, JSValue *value, const WebCore::String& str)1345 case IFrameFrameBorder: { iFrame.setFrameBorder(valueToStringWithNullCheck(exec, value)); return; } 1346 case IFrameHeight: { iFrame.setHeight(valueToStringWithNullCheck(exec, value)); return; } 1347 case IFrameLongDesc: { iFrame.setLongDesc(valueToStringWithNullCheck(exec, value)); return; } 1348 case IFrameMarginHeight: { iFrame.setMarginHeight(valueToStringWithNullCheck(exec, value)); return; } 1349 case IFrameMarginWidth: { iFrame.setMarginWidth(valueToStringWithNullCheck(exec, value)); return; } 1350 case IFrameName: { iFrame.setName(valueToStringWithNullCheck(exec, value)); return; } 1351 case IFrameScrolling: { iFrame.setScrolling(valueToStringWithNullCheck(exec, value)); return; } 1352 case IFrameSrc: { iFrame.setSrc(valueToStringWithNullCheck(exec, value)); return; } 1353 case IFrameWidth: { iFrame.setWidth(valueToStringWithNullCheck(exec, value)); return; } 1354 } 1355 } 1356 1357 void JSHTMLElement::marqueeSetter(ExecState* exec, int token, JSValue* value) 1358 1358 { 1359 1359 // FIXME: Find out what WinIE supports and implement it. … … 1363 1363 { 1364 1364 DOMExceptionTranslator exception(exec); 1365 WebCore::String str = value->toString(exec);1366 1365 1367 1366 // Check our set of generic properties first. … … 1369 1368 switch (token) { 1370 1369 case ElementId: 1371 element.setId( str);1370 element.setId(valueToStringWithNullCheck(exec, value)); 1372 1371 return; 1373 1372 case ElementLang: 1374 element.setLang( str);1373 element.setLang(valueToStringWithNullCheck(exec, value)); 1375 1374 return; 1376 1375 case ElementDir: 1377 element.setDir( str);1376 element.setDir(valueToStringWithNullCheck(exec, value)); 1378 1377 return; 1379 1378 case ElementClassName: 1380 element.setClassName( str);1379 element.setClassName(valueToStringWithNullCheck(exec, value)); 1381 1380 return; 1382 1381 case ElementInnerHTML: 1383 element.setInnerHTML( str, exception);1382 element.setInnerHTML(valueToStringWithNullCheck(exec, value), exception); 1384 1383 return; 1385 1384 case ElementInnerText: 1386 element.setInnerText( str, exception);1385 element.setInnerText(valueToStringWithNullCheck(exec, value), exception); 1387 1386 return; 1388 1387 case ElementOuterHTML: 1389 element.setOuterHTML( str, exception);1388 element.setOuterHTML(valueToStringWithNullCheck(exec, value), exception); 1390 1389 return; 1391 1390 case ElementOuterText: 1392 element.setOuterText( str, exception);1391 element.setOuterText(valueToStringWithNullCheck(exec, value), exception); 1393 1392 return; 1394 1393 case ElementContentEditable: 1395 element.setContentEditable( str);1394 element.setContentEditable(valueToStringWithNullCheck(exec, value)); 1396 1395 return; 1397 1396 } … … 1400 1399 const Accessors* access = accessors(); 1401 1400 if (access && access->m_setter) 1402 return (this->*(access->m_setter))(exec, token, value , str);1401 return (this->*(access->m_setter))(exec, token, value); 1403 1402 } 1404 1403 -
trunk/WebCore/bindings/js/kjs_html.h
r20972 r21470 86 86 // FIXME: Might make sense to combine this with ClassInfo some day. 87 87 typedef JSValue* (JSHTMLElement::*GetterFunction)(ExecState*, int token) const; 88 typedef void (JSHTMLElement::*SetterFunction)(ExecState*, int token, JSValue* , const WebCore::String&);88 typedef void (JSHTMLElement::*SetterFunction)(ExecState*, int token, JSValue*); 89 89 struct Accessors { GetterFunction m_getter; SetterFunction m_setter; }; 90 90 const Accessors* accessors() const; … … 95 95 96 96 JSValue* objectGetter(ExecState* exec, int token) const; 97 void objectSetter(ExecState*, int token, JSValue* , const WebCore::String&);97 void objectSetter(ExecState*, int token, JSValue*); 98 98 JSValue* embedGetter(ExecState*, int token) const; 99 void embedSetter(ExecState*, int token, JSValue* , const WebCore::String&);99 void embedSetter(ExecState*, int token, JSValue*); 100 100 JSValue* tableGetter(ExecState* exec, int token) const; 101 void tableSetter(ExecState*, int token, JSValue* , const WebCore::String&);101 void tableSetter(ExecState*, int token, JSValue*); 102 102 JSValue* tableCaptionGetter(ExecState* exec, int token) const; 103 void tableCaptionSetter(ExecState*, int token, JSValue* , const WebCore::String&);103 void tableCaptionSetter(ExecState*, int token, JSValue*); 104 104 JSValue* tableColGetter(ExecState* exec, int token) const; 105 void tableColSetter(ExecState*, int token, JSValue* , const WebCore::String&);105 void tableColSetter(ExecState*, int token, JSValue*); 106 106 JSValue* tableSectionGetter(ExecState* exec, int token) const; 107 void tableSectionSetter(ExecState*, int token, JSValue* , const WebCore::String&);107 void tableSectionSetter(ExecState*, int token, JSValue*); 108 108 JSValue* tableRowGetter(ExecState* exec, int token) const; 109 void tableRowSetter(ExecState*, int token, JSValue* , const WebCore::String&);109 void tableRowSetter(ExecState*, int token, JSValue*); 110 110 JSValue* tableCellGetter(ExecState* exec, int token) const; 111 void tableCellSetter(ExecState*, int token, JSValue* , const WebCore::String&);111 void tableCellSetter(ExecState*, int token, JSValue*); 112 112 JSValue* frameSetGetter(ExecState* exec, int token) const; 113 void frameSetSetter(ExecState*, int token, JSValue* , const WebCore::String&);113 void frameSetSetter(ExecState*, int token, JSValue*); 114 114 JSValue* frameGetter(ExecState* exec, int token) const; 115 void frameSetter(ExecState*, int token, JSValue* , const WebCore::String&);115 void frameSetter(ExecState*, int token, JSValue*); 116 116 JSValue* iFrameGetter(ExecState* exec, int token) const; 117 void iFrameSetter(ExecState*, int token, JSValue* , const WebCore::String&);117 void iFrameSetter(ExecState*, int token, JSValue*); 118 118 JSValue* marqueeGetter(ExecState* exec, int token) const; 119 void marqueeSetter(ExecState*, int token, JSValue* , const WebCore::String&);119 void marqueeSetter(ExecState*, int token, JSValue*); 120 120 121 121 enum { -
trunk/WebCore/dom/Document.idl
r20997 r21470 65 65 66 66 readonly attribute [ConvertNullStringTo=Null] DOMString xmlEncoding; 67 attribute [ConvertNullStringTo=Null ] DOMString xmlVersion67 attribute [ConvertNullStringTo=Null, ConvertNullToNullString] DOMString xmlVersion 68 68 setter raises (DOMException); 69 69 attribute boolean xmlStandalone … … 150 150 readonly attribute DOMString URL; 151 151 #endif 152 attribute [ConvertNullStringTo=Undefined ] DOMString charset;152 attribute [ConvertNullStringTo=Undefined, ConvertNullToNullString] DOMString charset; 153 153 readonly attribute [ConvertNullStringTo=Undefined] DOMString defaultCharset; 154 154 readonly attribute [ConvertNullStringTo=Undefined] DOMString readyState; … … 163 163 164 164 readonly attribute [ConvertNullStringTo=Null] DOMString preferredStylesheetSet; 165 attribute [ConvertNullStringTo=Null ] DOMString selectedStylesheetSet;165 attribute [ConvertNullStringTo=Null, ConvertNullToNullString] DOMString selectedStylesheetSet; 166 166 167 167 #if !defined(LANGUAGE_JAVASCRIPT) -
trunk/WebCore/dom/Node.idl
r20047 r21470 40 40 41 41 // FIXME: the spec says this can also raise on retrieval. 42 attribute DOMString nodeValue42 attribute [ConvertNullToNullString] DOMString nodeValue 43 43 setter raises(DOMException); 44 44 … … 72 72 in DOMString version); 73 73 readonly attribute DOMString namespaceURI; 74 attribute DOMString prefix74 attribute [ConvertNullToNullString] DOMString prefix 75 75 setter raises(DOMException); 76 76 readonly attribute DOMString localName; … … 82 82 83 83 // FIXME: the spec says this can also raise on retrieval. 84 attribute DOMString textContent84 attribute [ConvertNullToNullString] DOMString textContent 85 85 setter raises(DOMException); 86 86 -
trunk/WebCore/html/HTMLAnchorElement.idl
r19024 r21470 22 22 23 23 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLAnchorElement : HTMLElement { 24 attribute DOMString accessKey;25 attribute DOMString charset;26 attribute DOMString coords;27 attribute DOMString href;28 attribute DOMString hreflang;29 attribute DOMString name;30 attribute DOMString rel;31 attribute DOMString rev;32 attribute DOMString shape;24 attribute [ConvertNullToNullString] DOMString accessKey; 25 attribute [ConvertNullToNullString] DOMString charset; 26 attribute [ConvertNullToNullString] DOMString coords; 27 attribute [ConvertNullToNullString] DOMString href; 28 attribute [ConvertNullToNullString] DOMString hreflang; 29 attribute [ConvertNullToNullString] DOMString name; 30 attribute [ConvertNullToNullString] DOMString rel; 31 attribute [ConvertNullToNullString] DOMString rev; 32 attribute [ConvertNullToNullString] DOMString shape; 33 33 attribute long tabIndex; 34 attribute DOMString target;35 attribute DOMString type;34 attribute [ConvertNullToNullString] DOMString target; 35 attribute [ConvertNullToNullString] DOMString type; 36 36 37 37 void blur(); -
trunk/WebCore/html/HTMLAppletElement.idl
r19024 r21470 22 22 23 23 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLAppletElement : HTMLElement { 24 attribute DOMString align;25 attribute DOMString alt;26 attribute DOMString archive;27 attribute DOMString code;28 attribute DOMString codeBase;29 attribute DOMString height;24 attribute [ConvertNullToNullString] DOMString align; 25 attribute [ConvertNullToNullString] DOMString alt; 26 attribute [ConvertNullToNullString] DOMString archive; 27 attribute [ConvertNullToNullString] DOMString code; 28 attribute [ConvertNullToNullString] DOMString codeBase; 29 attribute [ConvertNullToNullString] DOMString height; 30 30 #if defined(LANGUAGE_OBJECTIVE_C) 31 31 attribute [ConvertFromString] long hspace; 32 32 #else 33 attribute DOMString hspace;33 attribute [ConvertNullToNullString] DOMString hspace; 34 34 #endif 35 attribute DOMString name;36 attribute DOMString object;35 attribute [ConvertNullToNullString] DOMString name; 36 attribute [ConvertNullToNullString] DOMString object; 37 37 #if defined(LANGUAGE_OBJECTIVE_C) 38 38 attribute [ConvertFromString] long vspace; 39 39 #else 40 attribute DOMString vspace;40 attribute [ConvertNullToNullString] DOMString vspace; 41 41 #endif 42 attribute DOMString width;42 attribute [ConvertNullToNullString] DOMString width; 43 43 }; 44 44 -
trunk/WebCore/html/HTMLAreaElement.idl
r19024 r21470 22 22 23 23 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLAreaElement : HTMLElement { 24 attribute DOMString accessKey;25 attribute DOMString alt;26 attribute DOMString coords;27 attribute DOMString href;24 attribute [ConvertNullToNullString] DOMString accessKey; 25 attribute [ConvertNullToNullString] DOMString alt; 26 attribute [ConvertNullToNullString] DOMString coords; 27 attribute [ConvertNullToNullString] DOMString href; 28 28 attribute boolean noHref; 29 attribute DOMString shape;29 attribute [ConvertNullToNullString] DOMString shape; 30 30 attribute long tabIndex; 31 attribute DOMString target;31 attribute [ConvertNullToNullString] DOMString target; 32 32 33 33 // IE Extensions -
trunk/WebCore/html/HTMLBRElement.idl
r19024 r21470 20 20 module html { 21 21 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLBRElement : HTMLElement { 22 attribute DOMString clear;22 attribute [ConvertNullToNullString] DOMString clear; 23 23 }; 24 24 } -
trunk/WebCore/html/HTMLBaseElement.idl
r19024 r21470 21 21 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLBaseElement : HTMLElement { 23 attribute DOMString href;24 attribute DOMString target;23 attribute [ConvertNullToNullString] DOMString href; 24 attribute [ConvertNullToNullString] DOMString target; 25 25 }; 26 26 -
trunk/WebCore/html/HTMLBaseFontElement.idl
r19800 r21470 21 21 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLBaseFontElement : HTMLElement { 23 attribute DOMString color;24 attribute DOMString face;23 attribute [ConvertNullToNullString] DOMString color; 24 attribute [ConvertNullToNullString] DOMString face; 25 25 #if defined(LANGUAGE_OBJECTIVE_C) 26 26 attribute [ConvertToString] DOMString size; // this changed to a long, but our existing API is a string -
trunk/WebCore/html/HTMLBlockquoteElement.idl
r14483 r21470 21 21 22 22 interface [LegacyParent=KJS::JSHTMLElement] HTMLBlockquoteElement : HTMLElement { 23 attribute DOMString cite;23 attribute [ConvertNullToNullString] DOMString cite; 24 24 }; 25 25 } -
trunk/WebCore/html/HTMLBodyElement.idl
r19024 r21470 21 21 module html { 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLBodyElement : HTMLElement { 23 attribute DOMString aLink;24 attribute DOMString background;25 attribute DOMString bgColor;26 attribute DOMString link;27 attribute DOMString text;28 attribute DOMString vLink;23 attribute [ConvertNullToNullString] DOMString aLink; 24 attribute [ConvertNullToNullString] DOMString background; 25 attribute [ConvertNullToNullString] DOMString bgColor; 26 attribute [ConvertNullToNullString] DOMString link; 27 attribute [ConvertNullToNullString] DOMString text; 28 attribute [ConvertNullToNullString] DOMString vLink; 29 29 30 30 // IE Extensions -
trunk/WebCore/html/HTMLButtonElement.idl
r19024 r21470 23 23 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLButtonElement : HTMLElement { 24 24 readonly attribute HTMLFormElement form; 25 attribute DOMString accessKey;25 attribute [ConvertNullToNullString] DOMString accessKey; 26 26 attribute boolean disabled; 27 attribute DOMString name;27 attribute [ConvertNullToNullString] DOMString name; 28 28 attribute long tabIndex; 29 29 readonly attribute DOMString type; 30 attribute DOMString value;30 attribute [ConvertNullToNullString] DOMString value; 31 31 32 32 void click(); -
trunk/WebCore/html/HTMLDivElement.idl
r19024 r21470 21 21 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLDivElement : HTMLElement { 23 attribute DOMString align;23 attribute [ConvertNullToNullString] DOMString align; 24 24 }; 25 25 -
trunk/WebCore/html/HTMLDocument.idl
r16394 r21470 23 23 interface [LegacyParent=KJS::JSHTMLDocument, GenerateConstructor] HTMLDocument : Document { 24 24 #if !defined(LANGUAGE_JAVASCRIPT) 25 attribute DOMString title;25 attribute [ConvertNullToNullString] DOMString title; 26 26 readonly attribute DOMString referrer; 27 27 readonly attribute DOMString domain; … … 41 41 // FIXME: the DOM spec states that this attribute can 42 42 // raise an exception on setting. 43 attribute DOMString cookie43 attribute [ConvertNullToNullString] DOMString cookie 44 44 /*setter raises (DOMException)*/; 45 45 -
trunk/WebCore/html/HTMLElement.idl
r16299 r21470 22 22 23 23 interface [GenerateConstructor] HTMLElement : Element { 24 attribute DOMString title;24 attribute [ConvertNullToNullString] DOMString title; 25 25 26 26 #if !defined(LANGUAGE_JAVASCRIPT) 27 attribute DOMString id;28 attribute DOMString lang;29 attribute DOMString dir;30 attribute DOMString className;27 attribute [ConvertNullToNullString] DOMString id; 28 attribute [ConvertNullToNullString] DOMString lang; 29 attribute [ConvertNullToNullString] DOMString dir; 30 attribute [ConvertNullToNullString] DOMString className; 31 31 32 32 // extensions 33 33 34 attribute DOMString innerHTML35 setter raises 36 attribute DOMString innerText37 setter raises 38 attribute DOMString outerHTML39 setter raises 40 attribute DOMString outerText41 setter raises 34 attribute [ConvertNullToNullString] DOMString innerHTML 35 setter raises(DOMException); 36 attribute [ConvertNullToNullString] DOMString innerText 37 setter raises(DOMException); 38 attribute [ConvertNullToNullString] DOMString outerHTML 39 setter raises(DOMException); 40 attribute [ConvertNullToNullString] DOMString outerText 41 setter raises(DOMException); 42 42 43 43 readonly attribute HTMLCollection children; 44 44 45 attribute DOMString contentEditable;45 attribute [ConvertNullToNullString] DOMString contentEditable; 46 46 readonly attribute boolean isContentEditable; 47 47 -
trunk/WebCore/html/HTMLEmbedElement.idl
r16888 r21470 22 22 23 23 interface HTMLEmbedElement : HTMLElement { 24 attribute DOMString align;24 attribute [ConvertNullToNullString] DOMString align; 25 25 attribute [ConvertFromString] long height; 26 attribute DOMString name;27 attribute DOMString src;28 attribute DOMString type;26 attribute [ConvertNullToNullString] DOMString name; 27 attribute [ConvertNullToNullString] DOMString src; 28 attribute [ConvertNullToNullString] DOMString type; 29 29 attribute [ConvertFromString] long width; 30 30 }; -
trunk/WebCore/html/HTMLFontElement.idl
r19024 r21470 20 20 module html { 21 21 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLFontElement : HTMLElement { 22 attribute DOMString color;23 attribute DOMString face;24 attribute DOMString size;22 attribute [ConvertNullToNullString] DOMString color; 23 attribute [ConvertNullToNullString] DOMString face; 24 attribute [ConvertNullToNullString] DOMString size; 25 25 }; 26 26 } -
trunk/WebCore/html/HTMLFormElement.idl
r19024 r21470 24 24 readonly attribute HTMLCollection elements; 25 25 readonly attribute long length; 26 attribute DOMString name;27 attribute DOMString acceptCharset;28 attribute DOMString action;29 attribute DOMString encoding; /* Netscape/Firefox legacy attribute. Same as enctype. */30 attribute DOMString enctype;31 attribute DOMString method;32 attribute DOMString target;26 attribute [ConvertNullToNullString] DOMString name; 27 attribute [ConvertNullToNullString] DOMString acceptCharset; 28 attribute [ConvertNullToNullString] DOMString action; 29 attribute [ConvertNullToNullString] DOMString encoding; /* Netscape/Firefox legacy attribute. Same as enctype. */ 30 attribute [ConvertNullToNullString] DOMString enctype; 31 attribute [ConvertNullToNullString] DOMString method; 32 attribute [ConvertNullToNullString] DOMString target; 33 33 34 34 void submit(); -
trunk/WebCore/html/HTMLFrameElement.idl
r16098 r21470 23 23 interface HTMLFrameElement : HTMLElement { 24 24 25 attribute DOMString frameBorder;26 attribute DOMString longDesc;27 attribute DOMString marginHeight;28 attribute DOMString marginWidth;29 attribute DOMString name;25 attribute [ConvertNullToNullString] DOMString frameBorder; 26 attribute [ConvertNullToNullString] DOMString longDesc; 27 attribute [ConvertNullToNullString] DOMString marginHeight; 28 attribute [ConvertNullToNullString] DOMString marginWidth; 29 attribute [ConvertNullToNullString] DOMString name; 30 30 attribute boolean noResize; 31 attribute DOMString scrolling;32 attribute DOMString src;31 attribute [ConvertNullToNullString] DOMString scrolling; 32 attribute [ConvertNullToNullString] DOMString src; 33 33 // Introduced in DOM Level 2: 34 34 readonly attribute Document contentDocument; -
trunk/WebCore/html/HTMLFrameSetElement.idl
r16098 r21470 23 23 interface HTMLFrameSetElement : HTMLElement { 24 24 25 attribute DOMString cols;26 attribute DOMString rows;25 attribute [ConvertNullToNullString] DOMString cols; 26 attribute [ConvertNullToNullString] DOMString rows; 27 27 28 28 }; -
trunk/WebCore/html/HTMLHRElement.idl
r19024 r21470 20 20 module html { 21 21 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLHRElement : HTMLElement { 22 attribute DOMString align;22 attribute [ConvertNullToNullString] DOMString align; 23 23 attribute boolean noShade; 24 attribute DOMString size;25 attribute DOMString width;24 attribute [ConvertNullToNullString] DOMString size; 25 attribute [ConvertNullToNullString] DOMString width; 26 26 }; 27 27 } -
trunk/WebCore/html/HTMLHeadElement.idl
r19024 r21470 21 21 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLHeadElement : HTMLElement { 23 attribute DOMString profile;23 attribute [ConvertNullToNullString] DOMString profile; 24 24 }; 25 25 -
trunk/WebCore/html/HTMLHeadingElement.idl
r19024 r21470 20 20 module html { 21 21 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLHeadingElement : HTMLElement { 22 attribute DOMString align;22 attribute [ConvertNullToNullString] DOMString align; 23 23 }; 24 24 } -
trunk/WebCore/html/HTMLHtmlElement.idl
r19024 r21470 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLHtmlElement : HTMLElement { 23 23 24 attribute DOMString version;24 attribute [ConvertNullToNullString] DOMString version; 25 25 26 26 }; -
trunk/WebCore/html/HTMLIFrameElement.idl
r16098 r21470 23 23 interface HTMLIFrameElement : HTMLElement { 24 24 25 attribute DOMString align;26 attribute DOMString frameBorder;27 attribute DOMString height;28 attribute DOMString longDesc;29 attribute DOMString marginHeight;30 attribute DOMString marginWidth;31 attribute DOMString name;32 attribute DOMString scrolling;33 attribute DOMString src;34 attribute DOMString width;25 attribute [ConvertNullToNullString] DOMString align; 26 attribute [ConvertNullToNullString] DOMString frameBorder; 27 attribute [ConvertNullToNullString] DOMString height; 28 attribute [ConvertNullToNullString] DOMString longDesc; 29 attribute [ConvertNullToNullString] DOMString marginHeight; 30 attribute [ConvertNullToNullString] DOMString marginWidth; 31 attribute [ConvertNullToNullString] DOMString name; 32 attribute [ConvertNullToNullString] DOMString scrolling; 33 attribute [ConvertNullToNullString] DOMString src; 34 attribute [ConvertNullToNullString] DOMString width; 35 35 // Introduced in DOM Level 2: 36 36 readonly attribute Document contentDocument; -
trunk/WebCore/html/HTMLImageElement.idl
r20954 r21470 21 21 module html { 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLImageElement : HTMLElement { 23 attribute DOMString name;24 attribute DOMString align;25 attribute DOMString alt;26 attribute DOMString border;23 attribute [ConvertNullToNullString] DOMString name; 24 attribute [ConvertNullToNullString] DOMString align; 25 attribute [ConvertNullToNullString] DOMString alt; 26 attribute [ConvertNullToNullString] DOMString border; 27 27 attribute long height; 28 28 attribute long hspace; 29 29 attribute boolean isMap; 30 attribute DOMString longDesc;31 attribute DOMString src;32 attribute DOMString useMap;30 attribute [ConvertNullToNullString] DOMString longDesc; 31 attribute [ConvertNullToNullString] DOMString src; 32 attribute [ConvertNullToNullString] DOMString useMap; 33 33 attribute long vspace; 34 34 attribute long width; … … 36 36 // Extensions 37 37 readonly attribute boolean complete; 38 attribute DOMString lowsrc;38 attribute [ConvertNullToNullString] DOMString lowsrc; 39 39 readonly attribute long naturalHeight; 40 40 readonly attribute long naturalWidth; -
trunk/WebCore/html/HTMLInputElement.idl
r21070 r21470 41 41 attribute [ConvertNullToNullString] DOMString src; 42 42 attribute long tabIndex; 43 attribute DOMStringtype; // readonly dropped as part of DOM level 243 attribute [ConvertNullToNullString] DOMString type; // readonly dropped as part of DOM level 2 44 44 attribute [ConvertNullToNullString] DOMString useMap; 45 45 attribute [ConvertNullToNullString] DOMString value; -
trunk/WebCore/html/HTMLIsIndexElement.idl
r19024 r21470 21 21 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLIsIndexElement : HTMLInputElement { 22 22 readonly attribute HTMLFormElement form; 23 attribute DOMString prompt;23 attribute [ConvertNullToNullString] DOMString prompt; 24 24 }; 25 25 } -
trunk/WebCore/html/HTMLLIElement.idl
r19024 r21470 20 20 module html { 21 21 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLLIElement : HTMLElement { 22 attribute DOMString type;22 attribute [ConvertNullToNullString] DOMString type; 23 23 attribute long value; 24 24 }; -
trunk/WebCore/html/HTMLLabelElement.idl
r19024 r21470 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLLabelElement : HTMLElement { 23 23 readonly attribute HTMLFormElement form; 24 attribute DOMString accessKey;25 attribute DOMString htmlFor;24 attribute [ConvertNullToNullString] DOMString accessKey; 25 attribute [ConvertNullToNullString] DOMString htmlFor; 26 26 27 27 void focus(); -
trunk/WebCore/html/HTMLLegendElement.idl
r19024 r21470 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLLegendElement : HTMLElement { 23 23 readonly attribute HTMLFormElement form; 24 attribute DOMString accessKey;25 attribute DOMString align;24 attribute [ConvertNullToNullString] DOMString accessKey; 25 attribute [ConvertNullToNullString] DOMString align; 26 26 27 27 void focus(); -
trunk/WebCore/html/HTMLLinkElement.idl
r19024 r21470 23 23 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLLinkElement : HTMLElement { 24 24 attribute boolean disabled; 25 attribute DOMString charset;26 attribute DOMString href;27 attribute DOMString hreflang;28 attribute DOMString media;29 attribute DOMString rel;30 attribute DOMString rev;31 attribute DOMString target;32 attribute DOMString type;25 attribute [ConvertNullToNullString] DOMString charset; 26 attribute [ConvertNullToNullString] DOMString href; 27 attribute [ConvertNullToNullString] DOMString hreflang; 28 attribute [ConvertNullToNullString] DOMString media; 29 attribute [ConvertNullToNullString] DOMString rel; 30 attribute [ConvertNullToNullString] DOMString rev; 31 attribute [ConvertNullToNullString] DOMString target; 32 attribute [ConvertNullToNullString] DOMString type; 33 33 34 34 // DOM Level 2 Style -
trunk/WebCore/html/HTMLMapElement.idl
r19024 r21470 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLMapElement : HTMLElement { 23 23 readonly attribute HTMLCollection areas; 24 attribute DOMString name;24 attribute [ConvertNullToNullString] DOMString name; 25 25 }; 26 26 } -
trunk/WebCore/html/HTMLMetaElement.idl
r19024 r21470 21 21 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLMetaElement : HTMLElement { 23 attribute DOMString content;24 attribute DOMString httpEquiv;25 attribute DOMString name;26 attribute DOMString scheme;23 attribute [ConvertNullToNullString] DOMString content; 24 attribute [ConvertNullToNullString] DOMString httpEquiv; 25 attribute [ConvertNullToNullString] DOMString name; 26 attribute [ConvertNullToNullString] DOMString scheme; 27 27 }; 28 28 -
trunk/WebCore/html/HTMLModElement.idl
r19024 r21470 21 21 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLModElement : HTMLElement { 23 attribute DOMString cite;24 attribute DOMString dateTime;23 attribute [ConvertNullToNullString] DOMString cite; 24 attribute [ConvertNullToNullString] DOMString dateTime; 25 25 }; 26 26 -
trunk/WebCore/html/HTMLOListElement.idl
r19024 r21470 23 23 attribute boolean compact; 24 24 attribute long start; 25 attribute DOMString type;25 attribute [ConvertNullToNullString] DOMString type; 26 26 }; 27 27 -
trunk/WebCore/html/HTMLObjectElement.idl
r16947 r21470 24 24 25 25 readonly attribute HTMLFormElement form; 26 attribute DOMString code;27 attribute DOMString align;28 attribute DOMString archive;29 attribute DOMString border;30 attribute DOMString codeBase;31 attribute DOMString codeType;32 attribute DOMString data;26 attribute [ConvertNullToNullString] DOMString code; 27 attribute [ConvertNullToNullString] DOMString align; 28 attribute [ConvertNullToNullString] DOMString archive; 29 attribute [ConvertNullToNullString] DOMString border; 30 attribute [ConvertNullToNullString] DOMString codeBase; 31 attribute [ConvertNullToNullString] DOMString codeType; 32 attribute [ConvertNullToNullString] DOMString data; 33 33 attribute boolean declare; 34 attribute DOMString height;34 attribute [ConvertNullToNullString] DOMString height; 35 35 attribute long hspace; 36 attribute DOMString name;37 attribute DOMString standby;36 attribute [ConvertNullToNullString] DOMString name; 37 attribute [ConvertNullToNullString] DOMString standby; 38 38 attribute long tabIndex; 39 attribute DOMString type;40 attribute DOMString useMap;39 attribute [ConvertNullToNullString] DOMString type; 40 attribute [ConvertNullToNullString] DOMString useMap; 41 41 attribute long vspace; 42 attribute DOMString width;42 attribute [ConvertNullToNullString] DOMString width; 43 43 // Introduced in DOM Level 2: 44 44 readonly attribute Document contentDocument; -
trunk/WebCore/html/HTMLOptGroupElement.idl
r19024 r21470 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLOptGroupElement : HTMLElement { 23 23 attribute boolean disabled; 24 attribute DOMString label;24 attribute [ConvertNullToNullString] DOMString label; 25 25 }; 26 26 -
trunk/WebCore/html/HTMLOptionElement.idl
r16860 r21470 25 25 attribute boolean defaultSelected; 26 26 #if defined(LANGUAGE_JAVASCRIPT) 27 attribute DOMString text27 attribute [ConvertNullToNullString] DOMString text 28 28 setter raises(DOMException); 29 29 attribute long index … … 34 34 #endif 35 35 attribute boolean disabled; 36 attribute DOMString label;36 attribute [ConvertNullToNullString] DOMString label; 37 37 attribute boolean selected; 38 attribute DOMString value;38 attribute [ConvertNullToNullString] DOMString value; 39 39 }; 40 40 -
trunk/WebCore/html/HTMLParagraphElement.idl
r19024 r21470 21 21 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLParagraphElement : HTMLElement { 23 attribute DOMString align;23 attribute [ConvertNullToNullString] DOMString align; 24 24 }; 25 25 -
trunk/WebCore/html/HTMLParamElement.idl
r19024 r21470 21 21 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLParamElement : HTMLElement { 23 attribute DOMString name;24 attribute DOMString type;25 attribute DOMString value;26 attribute DOMString valueType;23 attribute [ConvertNullToNullString] DOMString name; 24 attribute [ConvertNullToNullString] DOMString type; 25 attribute [ConvertNullToNullString] DOMString value; 26 attribute [ConvertNullToNullString] DOMString valueType; 27 27 }; 28 28 -
trunk/WebCore/html/HTMLQuoteElement.idl
r19024 r21470 21 21 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLQuoteElement : HTMLElement { 23 attribute DOMString cite;23 attribute [ConvertNullToNullString] DOMString cite; 24 24 }; 25 25 } -
trunk/WebCore/html/HTMLScriptElement.idl
r19024 r21470 21 21 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLScriptElement : HTMLElement { 23 attribute DOMString text;24 attribute DOMString htmlFor;25 attribute DOMString event;26 attribute DOMString charset;23 attribute [ConvertNullToNullString] DOMString text; 24 attribute [ConvertNullToNullString] DOMString htmlFor; 25 attribute [ConvertNullToNullString] DOMString event; 26 attribute [ConvertNullToNullString] DOMString charset; 27 27 attribute boolean defer; 28 attribute DOMString src;29 attribute DOMString type;28 attribute [ConvertNullToNullString] DOMString src; 29 attribute [ConvertNullToNullString] DOMString type; 30 30 }; 31 31 } -
trunk/WebCore/html/HTMLSelectElement.idl
r19777 r21470 25 25 readonly attribute DOMString type; 26 26 attribute long selectedIndex; 27 attribute DOMString value;27 attribute [ConvertNullToNullString] DOMString value; 28 28 29 29 // Modified in DOM Level 2: … … 42 42 attribute boolean disabled; 43 43 attribute boolean multiple; 44 attribute DOMString name;44 attribute [ConvertNullToNullString] DOMString name; 45 45 attribute long size; 46 46 attribute long tabIndex; -
trunk/WebCore/html/HTMLStyleElement.idl
r19024 r21470 23 23 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLStyleElement : HTMLElement { 24 24 attribute boolean disabled; 25 attribute DOMString media;26 attribute DOMString type;25 attribute [ConvertNullToNullString] DOMString media; 26 attribute [ConvertNullToNullString] DOMString type; 27 27 28 28 // DOM Level 2 Style -
trunk/WebCore/html/HTMLTableCaptionElement.idl
r16098 r21470 23 23 interface HTMLTableCaptionElement : HTMLElement { 24 24 25 attribute DOMString align;25 attribute [ConvertNullToNullString] DOMString align; 26 26 27 27 }; -
trunk/WebCore/html/HTMLTableCellElement.idl
r16098 r21470 24 24 25 25 readonly attribute long cellIndex; 26 attribute DOMString abbr;27 attribute DOMString align;28 attribute DOMString axis;29 attribute DOMString bgColor;30 attribute DOMString ch;31 attribute DOMString chOff;26 attribute [ConvertNullToNullString] DOMString abbr; 27 attribute [ConvertNullToNullString] DOMString align; 28 attribute [ConvertNullToNullString] DOMString axis; 29 attribute [ConvertNullToNullString] DOMString bgColor; 30 attribute [ConvertNullToNullString] DOMString ch; 31 attribute [ConvertNullToNullString] DOMString chOff; 32 32 attribute long colSpan; 33 attribute DOMString headers;34 attribute DOMString height;33 attribute [ConvertNullToNullString] DOMString headers; 34 attribute [ConvertNullToNullString] DOMString height; 35 35 attribute boolean noWrap; 36 36 attribute long rowSpan; 37 attribute DOMString scope;38 attribute DOMString vAlign;39 attribute DOMString width;37 attribute [ConvertNullToNullString] DOMString scope; 38 attribute [ConvertNullToNullString] DOMString vAlign; 39 attribute [ConvertNullToNullString] DOMString width; 40 40 41 41 }; -
trunk/WebCore/html/HTMLTableColElement.idl
r16098 r21470 23 23 interface HTMLTableColElement : HTMLElement { 24 24 25 attribute DOMString align;26 attribute DOMString ch;27 attribute DOMString chOff;25 attribute [ConvertNullToNullString] DOMString align; 26 attribute [ConvertNullToNullString] DOMString ch; 27 attribute [ConvertNullToNullString] DOMString chOff; 28 28 attribute long span; 29 attribute DOMString vAlign;30 attribute DOMString width;29 attribute [ConvertNullToNullString] DOMString vAlign; 30 attribute [ConvertNullToNullString] DOMString width; 31 31 32 32 }; -
trunk/WebCore/html/HTMLTableElement.idl
r16134 r21470 34 34 readonly attribute HTMLCollection rows; 35 35 readonly attribute HTMLCollection tBodies; 36 attribute DOMString align;37 attribute DOMString bgColor;38 attribute DOMString border;39 attribute DOMString cellPadding;40 attribute DOMString cellSpacing;36 attribute [ConvertNullToNullString] DOMString align; 37 attribute [ConvertNullToNullString] DOMString bgColor; 38 attribute [ConvertNullToNullString] DOMString border; 39 attribute [ConvertNullToNullString] DOMString cellPadding; 40 attribute [ConvertNullToNullString] DOMString cellSpacing; 41 41 42 42 // FIXME: the obj-c attribute is called frameBorders 43 attribute DOMString frame;43 attribute [ConvertNullToNullString] DOMString frame; 44 44 45 attribute DOMString rules;46 attribute DOMString summary;47 attribute DOMString width;45 attribute [ConvertNullToNullString] DOMString rules; 46 attribute [ConvertNullToNullString] DOMString summary; 47 attribute [ConvertNullToNullString] DOMString width; 48 48 49 49 HTMLElement createTHead(); -
trunk/WebCore/html/HTMLTableRowElement.idl
r16134 r21470 26 26 readonly attribute long sectionRowIndex; 27 27 readonly attribute HTMLCollection cells; 28 attribute DOMString align;29 attribute DOMString bgColor;30 attribute DOMString ch;31 attribute DOMString chOff;32 attribute DOMString vAlign;28 attribute [ConvertNullToNullString] DOMString align; 29 attribute [ConvertNullToNullString] DOMString bgColor; 30 attribute [ConvertNullToNullString] DOMString ch; 31 attribute [ConvertNullToNullString] DOMString chOff; 32 attribute [ConvertNullToNullString] DOMString vAlign; 33 33 34 34 HTMLElement insertCell(in long index) -
trunk/WebCore/html/HTMLTableSectionElement.idl
r16134 r21470 23 23 interface HTMLTableSectionElement : HTMLElement { 24 24 25 attribute DOMString align;26 attribute DOMString ch;27 attribute DOMString chOff;28 attribute DOMString vAlign;25 attribute [ConvertNullToNullString] DOMString align; 26 attribute [ConvertNullToNullString] DOMString ch; 27 attribute [ConvertNullToNullString] DOMString chOff; 28 attribute [ConvertNullToNullString] DOMString vAlign; 29 29 readonly attribute HTMLCollection rows; 30 30 -
trunk/WebCore/html/HTMLTextAreaElement.idl
r19024 r21470 22 22 23 23 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLTextAreaElement : HTMLElement { 24 attribute DOMString defaultValue;24 attribute [ConvertNullToNullString] DOMString defaultValue; 25 25 readonly attribute HTMLFormElement form; 26 attribute DOMString accessKey;26 attribute [ConvertNullToNullString] DOMString accessKey; 27 27 attribute long cols; 28 28 attribute boolean disabled; 29 attribute DOMString name;29 attribute [ConvertNullToNullString] DOMString name; 30 30 attribute boolean readOnly; 31 31 attribute long rows; 32 32 attribute long tabIndex; 33 33 readonly attribute DOMString type; 34 attribute DOMString value;34 attribute [ConvertNullToNullString] DOMString value; 35 35 36 36 void blur(); -
trunk/WebCore/html/HTMLTitleElement.idl
r19024 r21470 21 21 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLTitleElement : HTMLElement { 23 attribute DOMString text;23 attribute [ConvertNullToNullString] DOMString text; 24 24 }; 25 25 -
trunk/WebCore/html/HTMLUListElement.idl
r19024 r21470 22 22 interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLUListElement : HTMLElement { 23 23 attribute boolean compact; 24 attribute DOMString type;24 attribute [ConvertNullToNullString] DOMString type; 25 25 }; 26 26
Note: See TracChangeset
for help on using the changeset viewer.