Parses a tag name. The current position should be the first character of the name. Returns the parsed name string.
()
| 264 | /// </summary> |
| 265 | /// <returns>Returns the parsed name string.</returns> |
| 266 | private string ParseTagName() |
| 267 | { |
| 268 | int start = _pos; |
| 269 | while (!EOF) |
| 270 | { |
| 271 | var c = Peek(); |
| 272 | if (!char.IsLetterOrDigit(c)) |
| 273 | break; |
| 274 | Move(); |
| 275 | } |
| 276 | return _html.Substring(start, _pos - start); |
| 277 | } |
| 278 | |
| 279 | /// <summary> |
| 280 | /// Parses an attribute name. The current position should be the first character of the name. |