mirror of
https://github.com/golang/go
synced 2024-10-05 00:11:21 -06:00
b9064fb132
Nodes now have a Namespace field. Pass adoption01.dat, test 12: <a><svg><tr><input></a> | <html> | <head> | <body> | <a> | <svg svg> | <svg tr> | <svg input> The other adoption01.dat tests already passed. R=andybalholm CC=golang-dev https://golang.org/cl/5467075
57 lines
1.2 KiB
Go
57 lines
1.2 KiB
Go
// Copyright 2011 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package html
|
|
|
|
// Section 12.2.5.5.
|
|
var breakout = map[string]bool{
|
|
"b": true,
|
|
"big": true,
|
|
"blockquote": true,
|
|
"body": true,
|
|
"br": true,
|
|
"center": true,
|
|
"code": true,
|
|
"dd": true,
|
|
"div": true,
|
|
"dl": true,
|
|
"dt": true,
|
|
"em": true,
|
|
"embed": true,
|
|
"font": true,
|
|
"h1": true,
|
|
"h2": true,
|
|
"h3": true,
|
|
"h4": true,
|
|
"h5": true,
|
|
"h6": true,
|
|
"head": true,
|
|
"hr": true,
|
|
"i": true,
|
|
"img": true,
|
|
"li": true,
|
|
"listing": true,
|
|
"menu": true,
|
|
"meta": true,
|
|
"nobr": true,
|
|
"ol": true,
|
|
"p": true,
|
|
"pre": true,
|
|
"ruby": true,
|
|
"s": true,
|
|
"small": true,
|
|
"span": true,
|
|
"strong": true,
|
|
"strike": true,
|
|
"sub": true,
|
|
"sup": true,
|
|
"table": true,
|
|
"tt": true,
|
|
"u": true,
|
|
"ul": true,
|
|
"var": true,
|
|
}
|
|
|
|
// TODO: add look-up tables for MathML and SVG adjustments.
|