Skip to content

Commit

Permalink
Fixed gross errors in serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
lexborisov committed Nov 15, 2016
1 parent 193c17a commit b27f9f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/myhtml/serialization.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ void myhtml_serialization_attributes(myhtml_tree_t* tree, myhtml_tree_attr_t* at
The attribute's serialized name is the string "xmlns:" followed by the attribute's local name.
*/
if(attr->key.data && attr->key.length == 5 && myhtml_strcmp(attr->key.data, "xmlns")) {
callback("xmlns:", 6, callback);
callback("xmlns:", 6, ptr);
}

break;
}
case MyHTML_NAMESPACE_XLINK: {
callback("xlink:", 6, callback);
callback("xlink:", 6, ptr);

break;
}
Expand Down Expand Up @@ -309,7 +309,7 @@ void myhtml_serialization_append_attr(const char* data, size_t size, myhtml_call
break;
case 0xA0:
if (notwritten) callback(data + i - notwritten, notwritten, ptr);
callback(" ", 6, NULL);
callback(" ", 6, ptr);
notwritten = 0;
break;
default:
Expand Down

0 comments on commit b27f9f7

Please sign in to comment.