9463
JavaScript
// #9463
var bareInput = $("<input>");
// Clearly there is no "type" attr in the markup
console.log( "input attr: ", bareInput.attr("type"));
// There IS a type property, defined in the HTMLInputElement prototype
// http://www.w3.org/TR/html-markup/input.text.html#input.text
console.log( "input prop: ", bareInput.prop("type"));
var advInput = $("<input type='advanced'>");
console.log( "input attr: ", advInput.attr("type"));
console.log( "input prop: ", advInput.prop("type"));